Fix ADC initalization sequence

Fix ADC initalization sequence (#9473)
This commit is contained in:
Theo Arends 2020-10-06 12:12:14 +02:00
parent 08d79b6765
commit 0c90f71e00
5 changed files with 7 additions and 1 deletions

View File

@ -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)

View File

@ -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)

View File

@ -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
}

View File

@ -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:

View File

@ -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;