1
0
Fork 0
mirror of https://github.com/opentx/opentx.git synced 2025-07-14 03:49:52 +03:00

Merge from 2.3

This commit is contained in:
Bertrand Songis 2019-12-05 09:29:11 +01:00
commit 4c484017a4
No known key found for this signature in database
GPG key ID: F189F79290FEC50F
161 changed files with 3683 additions and 10306 deletions

View file

@ -487,10 +487,10 @@ char * strAppendUnsigned(char * dest, uint32_t value, uint8_t digits, uint8_t ra
}
}
uint8_t idx = digits;
while(idx > 0) {
uint32_t rem = value % radix;
dest[--idx] = (rem >= 10 ? 'A'-10 : '0') + rem;
value /= radix;
while (idx > 0) {
div_t qr = div(value, radix);
dest[--idx] = (qr.rem >= 10 ? 'A' - 10 : '0') + qr.rem;
value = qr.quot;
}
dest[digits] = '\0';
return &dest[digits];