Commit 424a8d33 authored by Gert Menke's avatar Gert Menke

Merge branch 'master' into 340-also-enter-shall-fall-back-to-nop-if-pressed-longer-than-1-s

parents cdacbf00 54fa660d
......@@ -827,7 +827,7 @@ void realToDisplayString2(const void *real, bool_t real34, char *displayString)
}
// The ending zeros
for(digitPointer=0; digitPointer<=digitsToDisplay-numDigits; digitPointer++, digitCount--) {
for(digitPointer=0; digitPointer<=digitsToDisplay-max(0, numDigits); digitPointer++, digitCount--) {
if(!firstDigitAfterPeriod && groupingGap!=0 && modulo(digitCount, (uint16_t)groupingGap) == (uint16_t)groupingGap - 1) {
memcpy(displayString + charIndex, NUM_SPACE_PUNCTUATION, 2);
charIndex += 2;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment