From 5a9adea2b6289ecdde28fc435ee78cea1b6d0f04 Mon Sep 17 00:00:00 2001 From: Harald Barth Date: Thu, 25 May 2023 08:05:07 +0200 Subject: [PATCH] Bug: Withrottle roster list end was not detected --- WiThrottle.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/WiThrottle.cpp b/WiThrottle.cpp index 9b8705d..eca5377 100644 --- a/WiThrottle.cpp +++ b/WiThrottle.cpp @@ -536,7 +536,7 @@ void WiThrottle::sendRoster(Print* stream) { if (cabid > 0) StringFormatter::send(stream,F("]\\[%S}|{%d}|{%c"), RMFT2::getRosterName(cabid),cabid,cabid<128?'S':'L'); - else if (cabid == INT16_MAX) + if (cabid == INT16_MAX) break; } StringFormatter::send(stream,F("\n"));