mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-26 20:26:32 +00:00
parent
8414f73bf4
commit
63f8a2aafd
@ -379,7 +379,7 @@ void RtcSecond(void)
|
|||||||
Rtc.millis = millis();
|
Rtc.millis = millis();
|
||||||
|
|
||||||
if (!Rtc.user_time_entry) {
|
if (!Rtc.user_time_entry) {
|
||||||
if (!global_state.wifi_down) {
|
if (!global_state.network_down) {
|
||||||
uint8_t uptime_minute = (uptime / 60) % 60; // 0 .. 59
|
uint8_t uptime_minute = (uptime / 60) % 60; // 0 .. 59
|
||||||
if ((Rtc.ntp_sync_minute > 59) && (uptime_minute > 2)) {
|
if ((Rtc.ntp_sync_minute > 59) && (uptime_minute > 2)) {
|
||||||
Rtc.ntp_sync_minute = 1; // If sync prepare for a new cycle
|
Rtc.ntp_sync_minute = 1; // If sync prepare for a new cycle
|
||||||
|
@ -322,7 +322,7 @@ String TelegramExecuteCommand(const char *svalue) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void TelegramLoop(void) {
|
void TelegramLoop(void) {
|
||||||
if (!global_state.wifi_down && (Telegram.recv_enable || Telegram.echo_enable)) {
|
if (!global_state.network_down && (Telegram.recv_enable || Telegram.echo_enable)) {
|
||||||
switch (Telegram.state) {
|
switch (Telegram.state) {
|
||||||
case 0:
|
case 0:
|
||||||
TelegramInit();
|
TelegramInit();
|
||||||
|
@ -792,7 +792,7 @@ void HandleWebcamRoot(void) {
|
|||||||
/*********************************************************************************************/
|
/*********************************************************************************************/
|
||||||
|
|
||||||
uint32_t WcSetStreamserver(uint32_t flag) {
|
uint32_t WcSetStreamserver(uint32_t flag) {
|
||||||
if (global_state.wifi_down) { return 0; }
|
if (global_state.network_down) { return 0; }
|
||||||
|
|
||||||
Wc.stream_active = 0;
|
Wc.stream_active = 0;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user