From 72bfc6abc7c6c1c2a855ee35a81d82f3156027d3 Mon Sep 17 00:00:00 2001 From: Harald Barth Date: Wed, 24 May 2023 22:57:43 +0200 Subject: [PATCH] INT16_MAX missing again --- WiThrottle.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/WiThrottle.cpp b/WiThrottle.cpp index 974d850..9b8705d 100644 --- a/WiThrottle.cpp +++ b/WiThrottle.cpp @@ -551,14 +551,14 @@ void WiThrottle::sendRoutes(Print* stream) { // first pass automations for (int ix=0;;ix+=2) { int16_t id =GETHIGHFLASHW(RMFT2::automationIdList,ix); - if (id==0) break; + if (id==INT16_MAX) break; const FSH * desc=RMFT2::getRouteDescription(id); StringFormatter::send(stream,F("]\\[A%d}|{%S}|{4"),id,desc); } // second pass routes. for (int ix=0;;ix+=2) { int16_t id=GETHIGHFLASHW(RMFT2::routeIdList,ix); - if (id==0) break; + if (id==INT16_MAX) break; const FSH * desc=RMFT2::getRouteDescription(id); StringFormatter::send(stream,F("]\\[R%d}|{%S}|{2"),id,desc); }