mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-24 19:26:37 +00:00
Merge branch 'development' of https://github.com/arendst/Tasmota into development
This commit is contained in:
commit
d606cc9383
@ -377,12 +377,6 @@ void RtcSecond(void)
|
|||||||
static uint32_t last_sync = 0;
|
static uint32_t last_sync = 0;
|
||||||
static bool mutex = false;
|
static bool mutex = false;
|
||||||
|
|
||||||
if ((TasmotaGlobal.init_state >= INIT_GPIOS) && PinUsed(GPIO_HEARTBEAT)) {
|
|
||||||
digitalWrite(Pin(GPIO_HEARTBEAT), ~TasmotaGlobal.heartbeat_inverted &1);
|
|
||||||
delayMicroseconds(50);
|
|
||||||
digitalWrite(Pin(GPIO_HEARTBEAT), TasmotaGlobal.heartbeat_inverted);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (mutex) { return; }
|
if (mutex) { return; }
|
||||||
|
|
||||||
if (Rtc.time_synced) {
|
if (Rtc.time_synced) {
|
||||||
|
@ -983,6 +983,12 @@ void PerformEverySecond(void)
|
|||||||
|
|
||||||
ResetGlobalValues();
|
ResetGlobalValues();
|
||||||
|
|
||||||
|
if ((TasmotaGlobal.init_state >= INIT_GPIOS) && PinUsed(GPIO_HEARTBEAT)) {
|
||||||
|
digitalWrite(Pin(GPIO_HEARTBEAT), ~TasmotaGlobal.heartbeat_inverted &1);
|
||||||
|
delayMicroseconds(50);
|
||||||
|
digitalWrite(Pin(GPIO_HEARTBEAT), TasmotaGlobal.heartbeat_inverted);
|
||||||
|
}
|
||||||
|
|
||||||
if (Settings->tele_period || (3601 == TasmotaGlobal.tele_period)) {
|
if (Settings->tele_period || (3601 == TasmotaGlobal.tele_period)) {
|
||||||
if (TasmotaGlobal.tele_period >= 9999) {
|
if (TasmotaGlobal.tele_period >= 9999) {
|
||||||
if (!TasmotaGlobal.global_state.network_down) {
|
if (!TasmotaGlobal.global_state.network_down) {
|
||||||
|
@ -91,7 +91,8 @@ bool Rg15Poll(void) {
|
|||||||
|
|
||||||
while (HydreonSerial->available()) {
|
while (HydreonSerial->available()) {
|
||||||
Rg15ReadLine(rg15_buffer);
|
Rg15ReadLine(rg15_buffer);
|
||||||
AddLog(LOG_LEVEL_DEBUG_MORE, PSTR("HRG: Received '%s'"), rg15_buffer);
|
// AddLog(LOG_LEVEL_DEBUG_MORE, PSTR("HRG: Received '%s'"), rg15_buffer);
|
||||||
|
AddLog(LOG_LEVEL_DEBUG_MORE, PSTR("HRG: Received %*_H"), strlen(rg15_buffer), rg15_buffer);
|
||||||
Rg15Process(rg15_buffer);
|
Rg15Process(rg15_buffer);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user