SV04-Marlin-2.1.x
SV04-Marlin-2.1.x copied to clipboard
Fix undefined behavior in powerloss.cpp.
Description
PSTR()
is only appropriate when passed to a printf()-style function, and will cause compiler warnings when passed to char*
parameters.
Instead, the F()
macro should be used in such scenarios.
Benefits
Eliminates all current build warnings (and undefined behavior). This makes the build output clean so new warnings are not accidentally ignored.