fix debug output

This commit is contained in:
interfisch 2024-07-13 21:16:57 +02:00
parent abdff38ae4
commit b68bc580cc
2 changed files with 3 additions and 1 deletions

View File

@ -31,7 +31,6 @@ void display_debugDisplay(ESCSerialComm& escFront, ESCSerialComm& escRear);
bool display_init(){
if(!display.begin(SSD1306_SWITCHCAPVCC, SCREEN_ADDRESS)) {
Serial.println(F("SSD1306 allocation failed"));
writeLogComment((unsigned long)millis(), "SSD1306 allocation failed");
return false;
}
display.clearDisplay();

View File

@ -99,6 +99,9 @@ void setup()
bool initResult=false;
initResult=display_init();
if (!initResult) {
writeLogComment((unsigned long)millis(), "SSD1306 allocation failed");
}
led_simpeProgress(1,initResult);