Browse Source

Fix left-shift warning

pull/1/head
Scott Lahteine 5 years ago
parent
commit
bb381e22b2
  1. 2
      Marlin/src/gcode/feature/leds/M7219.cpp

2
Marlin/src/gcode/feature/leds/M7219.cpp

@ -71,7 +71,7 @@ void GcodeSuite::M7219() {
} }
else if (parser.seen('D')) { else if (parser.seen('D')) {
const uint8_t uline = parser.value_byte() & 0x7, const uint8_t uline = parser.value_byte() & 0x7,
line = uline + parser.byteval('U') << 3; line = uline + (parser.byteval('U') << 3);
if (line < MAX7219_LINES) { if (line < MAX7219_LINES) {
max7219.led_line[line] = v; max7219.led_line[line] = v;
return max7219.refresh_line(line); return max7219.refresh_line(line);

Loading…
Cancel
Save