Port configuration based on Kconfig implemented

This commit is contained in:
Martin Jaeger
2020-01-06 19:16:44 +01:00
parent 7bd9bdeafd
commit 16ca793bb3
19 changed files with 158 additions and 108 deletions
+3 -2
View File
@@ -11,6 +11,7 @@
#ifdef OLED_ENABLED // otherwise don't compile code to reduce firmware size
#include <math.h>
#include <stdio.h>
#include "ext/ext.h"
@@ -75,9 +76,9 @@ void ExtOled::process_1s()
char buf[30];
unsigned int len;
#ifdef SOLAR_TERMINAL
#if CONFIG_HV_TERMINAL_SOLAR || CONFIG_PWM_TERMINAL_SOLAR
PowerPort &in_terminal = solar_terminal;
#elif defined(GRID_TERMINAL)
#elif CONFIG_HV_TERMINAL_NANOGRID
PowerPort &in_terminal = grid_terminal;
#endif