Skip to content

Commit 4838f0b

Browse files
committed
only write one byte
1 parent c4040fa commit 4838f0b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Marlin/src/gcode/eeprom/M500-M504.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ void GcodeSuite::M502() {
7373
bool success = true;
7474
for (uint16_t i = 0; success && i < sizeof(mc_zip); ++i) {
7575
const uint8_t c = pgm_read_byte(&mc_zip[i]);
76-
success = (file.write(&c) == 1);
76+
success = file.write(&c, 1) > 0;
7777
}
7878
success = file.close() && success;
7979

0 commit comments

Comments
 (0)