Skip to content

Commit

Permalink
Merge pull request #4 from MarlinFirmware/2.0.x
Browse files Browse the repository at this point in the history
Fix bool++ warning
  • Loading branch information
Guizz27 authored Mar 31, 2021
2 parents 101847e + e3a12c3 commit 09543df
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 09543df

Please sign in to comment.