Merge branch 'development' of https://github.com/arendst/Tasmota into development

This commit is contained in:
Michael 2021-12-18 15:09:57 +01:00
commit d606cc9383
3 changed files with 8 additions and 7 deletions

View File

@ -377,12 +377,6 @@ void RtcSecond(void)
static uint32_t last_sync = 0;
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 (Rtc.time_synced) {

View File

@ -983,6 +983,12 @@ void PerformEverySecond(void)
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 (TasmotaGlobal.tele_period >= 9999) {
if (!TasmotaGlobal.global_state.network_down) {

View File

@ -91,7 +91,8 @@ bool Rg15Poll(void) {
while (HydreonSerial->available()) {
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);
}