fix debug output
This commit is contained in:
parent
abdff38ae4
commit
b68bc580cc
|
@ -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();
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue