Skip to content

Commit

Permalink
🩹 Fix ftostrX3sign (MarlinFirmware#26497)
Browse files Browse the repository at this point in the history
  • Loading branch information
ellensp authored and classicrocker883 committed Dec 26, 2023
1 parent 387017f commit c089fe6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Marlin/src/libs/numtostr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ const char* ftostr51sign(const_float_t f) { return ftostrX1sign(f, 1); }
// Convert float to string with +/ /- and 3 decimal places
//
inline const char* ftostrX3sign(const_float_t f, const int index, char plus/*=' '*/) {
long i = INTFLOAT(f, 1);
long i = INTFLOAT(f, 3);
conv[index] = i ? MINUSOR(i, plus) : ' ';
switch (index + 1) {
case 1: conv[1] = DIGIMOD(i, 100000);
Expand Down

0 comments on commit c089fe6

Please sign in to comment.