wrong string formatter

This commit is contained in:
iceman1001 2023-11-03 15:41:07 +01:00
parent b09c3ac67c
commit dfdaa41987

View file

@ -860,7 +860,7 @@ int param_getbin_to_eol(const char *line, int paramnum, uint8_t *data, int maxda
if (strlen(buf) > 0) {
uint32_t temp = 0;
sscanf(buf, "%d", &temp);
sscanf(buf, "%u", &temp);
data[*datalen] = (uint8_t)(temp & 0xff);
*buf = 0;
(*datalen)++;