Skip to content

Commit

Permalink
[P103] Fix cast issue
Browse files Browse the repository at this point in the history
  • Loading branch information
tonhuisman committed Nov 16, 2024
1 parent 568dddf commit 5e5516e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/_P103_Atlas_EZO_pH_ORP_EC_DO.ino
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ boolean Plugin_103(uint8_t function, struct EventStruct *event, String& string)
}
}

if ((bType > -1) && (bType / 4 < NR_ELEMENTS(boardIDs))) {
if ((bType > -1) && ((size_t)(bType / 4) < NR_ELEMENTS(boardIDs))) {
board_type = boardIDs[bType / 4];
board = toString(board_type);
}
Expand Down

0 comments on commit 5e5516e

Please sign in to comment.