- Mon Sep 11, 2017 12:31 am
#21141
Hi.
Can all the commented out display lines in speduino.ino be wrapped in #ifdef statements?
I use a small display on a 2 cyl setup and it would make updates easier for me.
Thanks.
Heres a diff of what I changed in the Aug-17 firmware
bash-3.2$ diff speeduino.ino speeduino\ copy.ino
23,24d22
< //#define USE_DISPLAY
<
39,41c37
< #ifdef USE_DISPLAY
< #include "display.h"
< #endif
---
> //#include "display.h"
248,250c244
< #ifdef USE_DISPLAY
< initialiseDisplay();
< #endif
---
> //initialiseDisplay();
701,704c695,696
< #ifdef USE_DISPLAY
< // if (configPage1.displayType && (mainLoopCount & 255) == 1) { updateDisplay();}
< if (mainLoopCount & 255 == 1) { updateDisplay();}
< #endif
---
> // if (configPage1.displayType && (mainLoopCount & 255) == 1) { updateDisplay();}
>
1446c1438
< } //loop()
---
> } //loop()
Can all the commented out display lines in speduino.ino be wrapped in #ifdef statements?
I use a small display on a 2 cyl setup and it would make updates easier for me.
Thanks.
Heres a diff of what I changed in the Aug-17 firmware
bash-3.2$ diff speeduino.ino speeduino\ copy.ino
23,24d22
< //#define USE_DISPLAY
<
39,41c37
< #ifdef USE_DISPLAY
< #include "display.h"
< #endif
---
> //#include "display.h"
248,250c244
< #ifdef USE_DISPLAY
< initialiseDisplay();
< #endif
---
> //initialiseDisplay();
701,704c695,696
< #ifdef USE_DISPLAY
< // if (configPage1.displayType && (mainLoopCount & 255) == 1) { updateDisplay();}
< if (mainLoopCount & 255 == 1) { updateDisplay();}
< #endif
---
> // if (configPage1.displayType && (mainLoopCount & 255) == 1) { updateDisplay();}
>
1446c1438
< } //loop()
---
> } //loop()