Avoid copying FW version number into RAM - use the PROGMEM string

This commit is contained in:
D.R.racer 2021-01-25 09:03:04 +01:00
parent 4f769f0faa
commit c1ff6242b0
2 changed files with 2 additions and 2 deletions

View file

@ -8218,7 +8218,7 @@ Sigma_Exit:
if(code_seen('P'))
fw_version_check(++strchr_pointer);
else if(code_seen('Q'))
SERIAL_PROTOCOLLN(FW_VERSION);
SERIAL_PROTOCOLLNRPGM(FW_VERSION_STR_P());
break;
case ClPrintChecking::_Gcode: // ~ .5
if(code_seen('P'))

View file

@ -4212,7 +4212,7 @@ static void prusa_stat_printinfo()
SERIAL_ECHO(0);
}
SERIAL_ECHOPGM("][FWR:");
SERIAL_ECHO(FW_VERSION);
SERIAL_ECHORPGM(FW_VERSION_STR_P());
SERIAL_ECHO(']');
prusa_stat_diameter();
}