Skip to content

Commit

Permalink
Fix bool++ warning
Browse files Browse the repository at this point in the history
  • Loading branch information
thinkyhead committed Mar 23, 2021
1 parent b906519 commit e3a12c3
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Marlin/src/feature/encoder_i2c.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ void I2CPositionEncoder::init(const uint8_t address, const AxisEnum axis) {
encoderAxis = axis;
i2cAddress = address;

initialized++;
initialized = true;

SERIAL_ECHOLNPAIR("Setting up encoder on ", axis_codes[encoderAxis], " axis, addr = ", address);

Expand Down Expand Up @@ -208,8 +208,7 @@ void I2CPositionEncoder::set_homed() {
delay(10);

zeroOffset = get_raw_count();
homed++;
trusted++;
homed = trusted = true;

#ifdef I2CPE_DEBUG
SERIAL_ECHO(axis_codes[encoderAxis]);
Expand Down

0 comments on commit e3a12c3

Please sign in to comment.