Elimate non-text output for Portduino

This commit is contained in:
Jonathan Bennett 2024-05-06 20:56:59 -05:00
parent 2c99f11073
commit c009c0db1e
2 changed files with 3 additions and 1 deletions

View File

@ -51,7 +51,9 @@ SerialConsole::SerialConsole() : StreamAPI(&Port), RedirectablePrint(&Port), con
} }
} }
#endif #endif
#if !ARCH_PORTDUINO
emitRebooted(); emitRebooted();
#endif
} }
int32_t SerialConsole::runOnce() int32_t SerialConsole::runOnce()

View File

@ -344,7 +344,7 @@ void setup()
Wire.begin(I2C_SDA, I2C_SCL); Wire.begin(I2C_SDA, I2C_SCL);
#elif defined(ARCH_PORTDUINO) #elif defined(ARCH_PORTDUINO)
if (settingsStrings[i2cdev] != "") { if (settingsStrings[i2cdev] != "") {
LOG_INFO("Using %s as I2C device.\n", settingsStrings[i2cdev]); LOG_INFO("Using %s as I2C device.\n", settingsStrings[i2cdev].c_str());
Wire.begin(settingsStrings[i2cdev].c_str()); Wire.begin(settingsStrings[i2cdev].c_str());
} else { } else {
LOG_INFO("No I2C device configured, skipping.\n"); LOG_INFO("No I2C device configured, skipping.\n");