mirror of https://github.com/arendst/Tasmota.git
Prep v12.1.1
This commit is contained in:
parent
8d52722941
commit
930e659915
|
@ -371,7 +371,7 @@ enum LightSubtypes { LST_NONE, LST_SINGLE, LST_COLDWARM, LST_RGB, LST_RGBW, LS
|
|||
enum LightTypes { LT_BASIC, LT_PWM1, LT_PWM2, LT_PWM3, LT_PWM4, LT_PWM5, LT_PWM6, LT_PWM7,
|
||||
LT_NU8, LT_SERIAL1, LT_SERIAL2, LT_RGB, LT_RGBW, LT_RGBWC, LT_NU14, LT_NU15 }; // Do not insert new fields
|
||||
|
||||
enum XsnsFunctions {FUNC_SETTINGS_OVERRIDE, FUNC_PIN_STATE, FUNC_MODULE_INIT, FUNC_PRE_INIT, FUNC_INIT,
|
||||
enum XsnsFunctions {FUNC_SETTINGS_OVERRIDE, FUNC_PIN_STATE, FUNC_I2C_INIT, FUNC_MODULE_INIT, FUNC_PRE_INIT, FUNC_INIT,
|
||||
FUNC_LOOP, FUNC_EVERY_50_MSECOND, FUNC_EVERY_100_MSECOND, FUNC_EVERY_200_MSECOND, FUNC_EVERY_250_MSECOND, FUNC_EVERY_SECOND,
|
||||
FUNC_SAVE_SETTINGS, FUNC_SAVE_AT_MIDNIGHT, FUNC_SAVE_BEFORE_RESTART,
|
||||
FUNC_AFTER_TELEPERIOD, FUNC_JSON_APPEND, FUNC_WEB_SENSOR, FUNC_WEB_COL_SENSOR, FUNC_COMMAND, FUNC_COMMAND_SENSOR, FUNC_COMMAND_DRIVER,
|
||||
|
|
|
@ -2173,6 +2173,8 @@ void GpioInit(void)
|
|||
#endif
|
||||
#endif // USE_I2C
|
||||
|
||||
XdrvCall(FUNC_I2C_INIT); // Init RTC
|
||||
|
||||
TasmotaGlobal.devices_present = 0;
|
||||
TasmotaGlobal.light_type = LT_BASIC; // Use basic PWM control if SetOption15 = 0
|
||||
|
||||
|
|
|
@ -446,7 +446,7 @@ bool Xdrv56(uint8_t function) {
|
|||
}
|
||||
#endif // RTC_NTP_SERVER
|
||||
|
||||
if (FUNC_MODULE_INIT == function) {
|
||||
if (FUNC_I2C_INIT == function) {
|
||||
RtcChipDetect();
|
||||
}
|
||||
else if (RtcChip.detected) {
|
||||
|
|
Loading…
Reference in New Issue