Fix bool++ warning
This commit is contained in:
parent
b9065195f1
commit
e3a12c3c28
@ -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);
|
||||
|
||||
@ -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]);
|
||||
|
Loading…
Reference in New Issue
Block a user