diff --git a/RELEASENOTES.md b/RELEASENOTES.md index 46e203c81..2f5ccd21a 100644 --- a/RELEASENOTES.md +++ b/RELEASENOTES.md @@ -76,6 +76,7 @@ The attached binaries can also be downloaded from http://ota.tasmota.com/tasmota - Fix exception 28 due to device group buffer overflow (#9459) - Fix shutter timing problem due to buffer overflow in calibration matrix (#9458) - Fix light wakeup exception 0 (divide by zero) when ``WakeupDuration`` is not initialised (#9466) +- Fix ADC initalization sequence (#9473) - Add optional support for Mitsubishi Electric HVAC by David Gwynne (#9237) - Add optional support for Orno WE517-Modbus energy meter by Maxime Vincent (#9353) - Add SDM630 three phase ImportActive Energy display when ``#define SDM630_IMPORT`` is enabled by Janusz Kostorz (#9124) diff --git a/tasmota/CHANGELOG.md b/tasmota/CHANGELOG.md index d4296a9ee..81c7dfe55 100644 --- a/tasmota/CHANGELOG.md +++ b/tasmota/CHANGELOG.md @@ -17,6 +17,7 @@ - Fix exception 28 due to device group buffer overflow (#9459) - Fix shutter timing problem due to buffer overflow in calibration matrix (#9458) - Fix light wakeup exception 0 (divide by zero) when ``WakeupDuration`` is not initialised (#9466) +- Fix ADC initalization sequence (#9473) - Add optional support for Mitsubishi Electric HVAC by David Gwynne (#9237) - Add optional support for Orno WE517-Modbus energy meter by Maxime Vincent (#9353) - Add SDM630 three phase ImportActive Energy display when ``#define SDM630_IMPORT`` is enabled by Janusz Kostorz (#9124) diff --git a/tasmota/support_tasmota.ino b/tasmota/support_tasmota.ino index 675e3fac8..801fcce4e 100644 --- a/tasmota/support_tasmota.ino +++ b/tasmota/support_tasmota.ino @@ -1655,6 +1655,9 @@ void GpioInit(void) devices_present = 0; light_type = LT_BASIC; // Use basic PWM control if SetOption15 = 0 + + XsnsCall(FUNC_MODULE_INIT); + if (XdrvCall(FUNC_MODULE_INIT)) { // Serviced } diff --git a/tasmota/xsns_02_analog.ino b/tasmota/xsns_02_analog.ino index 8feca385e..09254d0a9 100644 --- a/tasmota/xsns_02_analog.ino +++ b/tasmota/xsns_02_analog.ino @@ -573,7 +573,7 @@ bool Xsns02(uint8_t function) { case FUNC_COMMAND: result = DecodeCommand(kAdcCommands, AdcCommand); break; - case FUNC_INIT: + case FUNC_MODULE_INIT: AdcInit(); break; default: diff --git a/tasmota/xsns_interface.ino b/tasmota/xsns_interface.ino index 0c85854de..4c4d273ea 100644 --- a/tasmota/xsns_interface.ino +++ b/tasmota/xsns_interface.ino @@ -924,6 +924,7 @@ bool XsnsCall(uint8_t Function) if (result && ((FUNC_COMMAND == Function) || (FUNC_PIN_STATE == Function) || + (FUNC_MODULE_INIT == Function) || (FUNC_COMMAND_SENSOR == Function) )) { break;