Skip to content

Commit

Permalink
AP_Winch: Change numeric and hexadecimal number determination to stan…
Browse files Browse the repository at this point in the history
…dard methods
  • Loading branch information
muramura authored and peterbarker committed Sep 12, 2024
1 parent 717b9d1 commit f817bb8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/AP_Winch/AP_Winch_Daiwa.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ void AP_Winch_Daiwa::read_data_from_winch()
while (nbytes-- > 0) {
int16_t b = uart->read();

if ((b >= '0' && b <= '9') || (b >= 'A' && b <= 'F') || (b >= 'a' && b <= 'f')) {
if (ishexa(b)) {
// add digits to buffer
buff[buff_len] = b;
buff_len++;
Expand Down

0 comments on commit f817bb8

Please sign in to comment.