huangcun / open-evse

Automatically exported from code.google.com/p/open-evse
0 stars 0 forks source link

Global defines need to be moved outside of conditional compilation block #3

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Turn off any adafruit or i2c display defines (IOW, only anticipate CLI usage 
with no display)
2. Attempt to compile the code
3. g_psEnabled[] is not defined in any scope yet used in CLI::GetInput

I believe if one moves 

prog_char g_psEnabled[] PROGMEM = "enabled";
prog_char g_psDisabled[] PROGMEM = "disabled";

to AFTER
#endif // LCD16X2

but BEFORE
//-- end global variables

void EvseReset();

(sorry I didn't attach a diff; I'll git it into that later)

Original issue reported on code.google.com by brian.mo...@gmail.com on 30 Aug 2012 at 5:23

GoogleCodeExporter commented 8 years ago
Fix pushed to GITHUB.

https://github.com/lincomatic/open_evse

Original comment by chris1howell83 on 4 Sep 2012 at 5:25