1
0
mirror of https://github.com/DCC-EX/CommandStation-EX.git synced 2025-07-28 09:53:45 +02:00

INT16_MAX is a better end of array marker than -1

This commit is contained in:
Harald Barth
2023-05-23 10:57:45 +02:00
parent fdbcbdf418
commit 951a6637f0
2 changed files with 4 additions and 4 deletions

View File

@@ -47,7 +47,7 @@
#define SENDFLASHLIST(stream,flashList) \
for (int16_t i=0;;i+=sizeof(flashList[0])) { \
int16_t value=GETHIGHFLASHW(flashList,i); \
if (value<0) break; \
if (value==INT16_MAX) break; \
StringFormatter::send(stream,F(" %d"),value); \
}