Skip to content

Commit 6d2dfca

Browse files
committed
🩹 Fix i2c encoder report
1 parent d1947fa commit 6d2dfca

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Marlin/src/feature/encoder_i2c.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -652,7 +652,7 @@ void I2CPositionEncodersMgr::report_position(const int8_t idx, const bool units,
652652
else {
653653
if (noOffset) {
654654
const int32_t raw_count = encoders[idx].get_raw_count();
655-
SERIAL_CHAR(AXIS_CHAR(encoders[idx).get_axis()], ' ');
655+
SERIAL_CHAR(AXIS_CHAR(encoders[idx].get_axis()), ' ');
656656

657657
for (uint8_t j = 31; j > 0; j--)
658658
SERIAL_ECHO((bool)(0x00000001 & (raw_count >> j)));
@@ -707,7 +707,7 @@ void I2CPositionEncodersMgr::change_module_address(const uint8_t oldaddr, const
707707
// and enable it (it will likely have failed initialization on power-up, before the address change).
708708
const int8_t idx = idx_from_addr(newaddr);
709709
if (idx >= 0 && !encoders[idx].get_active()) {
710-
SERIAL_CHAR(AXIS_CHAR(encoders[idx).get_axis()]);
710+
SERIAL_CHAR(AXIS_CHAR(encoders[idx].get_axis()));
711711
SERIAL_ECHOLNPGM(" axis encoder was not detected on printer startup. Trying again.");
712712
encoders[idx].set_active(encoders[idx].passes_test(true));
713713
}

0 commit comments

Comments
 (0)