SV04-Marlin-2.1.x icon indicating copy to clipboard operation
SV04-Marlin-2.1.x copied to clipboard

Fix undefined behavior in powerloss.cpp.

Open senbrow opened this issue 1 year ago • 0 comments

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.

senbrow avatar Apr 12 '23 20:04 senbrow