From da68fed3776edf69336a5628e9834baa48f2f850 Mon Sep 17 00:00:00 2001 From: golfi200 Date: Fri, 27 Jan 2023 10:19:18 +0100 Subject: [PATCH] minor changes --- tools/nano/AhoyUL/.gitignore | 2 ++ tools/nano/AhoyUL/src/config.h | 2 +- tools/nano/AhoyUL/src/main.cpp | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/tools/nano/AhoyUL/.gitignore b/tools/nano/AhoyUL/.gitignore index 472d3cb9..c04a05f4 100644 --- a/tools/nano/AhoyUL/.gitignore +++ b/tools/nano/AhoyUL/.gitignore @@ -5,4 +5,6 @@ .vscode/ipch .log config_override.h +smac_examples.txt + diff --git a/tools/nano/AhoyUL/src/config.h b/tools/nano/AhoyUL/src/config.h index 80e75508..aa522ab1 100644 --- a/tools/nano/AhoyUL/src/config.h +++ b/tools/nano/AhoyUL/src/config.h @@ -45,7 +45,7 @@ // default send interval #define SEND_INTERVAL (60) //send interval if Rx OK #define SEND_NOSIGNAL_SHORT (10) //short send interval if no RX (used initial sync or signal loss) -#define SEND_REPEAT (5) //number of tries of short send interval to sync faster to inverter after night +#define SEND_REPEAT (6) //number of tries of short send interval to sync faster to inverter after night #define SEND_NOSIGNAL_LONG (20*60) //long TX interval whne no SIGNAL for long time, e.g. over night // maximum human readable inverter name length diff --git a/tools/nano/AhoyUL/src/main.cpp b/tools/nano/AhoyUL/src/main.cpp index 2b8eff49..8f92dca2 100644 --- a/tools/nano/AhoyUL/src/main.cpp +++ b/tools/nano/AhoyUL/src/main.cpp @@ -852,6 +852,7 @@ void mSwitchCasesSer(char _inSer) { uint8_t invID5[5] = {0x01, 0x44, 0x33, 0x22, 0x11}; mParams = utSer.getParamsBuf(); tmp8 = utSer.read_uart_cmd_param(mParams); + mCountdown_noSignal = SEND_REPEAT; //trigger sending if before no resonse if (tmp8 > 0) { // get polling interval from first parameter