diff --git a/code/espurna/settings.ino b/code/espurna/settings.ino index d7c26a34..f77e9553 100644 --- a/code/espurna/settings.ino +++ b/code/espurna/settings.ino @@ -218,6 +218,16 @@ void _settingsInitCommands() { *((int*) 0) = 0; // see https://github.com/esp8266/Arduino/issues/1494 }); + settingsRegisterCommand(F("I2C.SCAN"), [](Embedis* e) { + i2cScan(); + DEBUG_MSG_P(PSTR("+OK\n")); + }); + + settingsRegisterCommand(F("I2C.CLEAR"), [](Embedis* e) { + i2cClearBus(); + DEBUG_MSG_P(PSTR("+OK\n")); + }); + settingsRegisterCommand(F("FACTORY.RESET"), [](Embedis* e) { _settingsFactoryResetCommand(); DEBUG_MSG_P(PSTR("+OK\n"));