From ae61c357c0b9718e8ffc991396868ecfe5704c52 Mon Sep 17 00:00:00 2001 From: Paul Date: Sat, 4 Jan 2020 15:39:07 +0100 Subject: [PATCH] fix #285 --- src/ems.cpp | 3 ++- src/version.h | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/ems.cpp b/src/ems.cpp index 5375cac26..586a99ff4 100644 --- a/src/ems.cpp +++ b/src/ems.cpp @@ -1735,7 +1735,7 @@ void _process_Version(_EMS_RxTelegram * EMS_RxTelegram) { uint8_t i = 0; uint8_t found_index = 0; bool typeFound = false; - while (i++ < _EMS_Devices_max) { + while (i < _EMS_Devices_max) { if (EMS_Devices[i].product_id == product_id) { // we have a matching product id /* @@ -1755,6 +1755,7 @@ void _process_Version(_EMS_RxTelegram * EMS_RxTelegram) { found_index = i; break; } + i++; } // if not found, just add it as an unknown device and exit diff --git a/src/version.h b/src/version.h index 4d590e577..b4147c440 100644 --- a/src/version.h +++ b/src/version.h @@ -1 +1 @@ -#define APP_VERSION "1.9.5b12" +#define APP_VERSION "1.9.5b13"