-
-
Notifications
You must be signed in to change notification settings - Fork 19.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Compilation warning with #define U8GLIB_SSD1306 #4614
Comments
I think this might be the right way to fix it… #if ENABLED(DOGLCD) // Changes due to different driver architecture of the DOGM display
static int8_t dot_color = 0;
dot_color = 1 - dot_color;
u8g.firstPage();
do {
lcd_setFont(FONT_MENU);
u8g.setPrintPos(125, 0);
u8g.setColorIndex(dot_color); // Set color for the alive dot
u8g.drawPixel(127, 63); // draw alive dot
u8g.setColorIndex(1); // black on white
- (*currentScreen)();
+ #if ENABLED(ULTIPANEL)
+ (*currentScreen)();
+ #else
+ lcd_status_screen();
+ #endif
} while (u8g.nextPage());
#elif ENABLED(ULTIPANEL)
(*currentScreen)();
#else
lcd_status_screen();
#endif |
I got new compilation warnings.
|
It looks like they just aren't used if |
XD @thinkyhead i'd kiss ya if I could. I am working on adding my SSD1351 SPI OLED to the code and ran right into this issue. Your suggested code change came just seconds after I needed it. It works brilliantly. |
@esenapaj does it now compile without error? |
Yes it is, compilation error was fixed by commit 132322e. |
maybe close this one and open a new on with the new warning? |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
When
#define U8GLIB_SSD1306
is enabled with newest RCBugFix, it occurs compilation error.error message
The text was updated successfully, but these errors were encountered: