Fix bool++ warning
This commit is contained in:
parent
790bba1556
commit
d4ab2024f5
@ -47,7 +47,7 @@ void I2CPositionEncoder::init(const uint8_t address, const AxisEnum axis) {
|
|||||||
encoderAxis = axis;
|
encoderAxis = axis;
|
||||||
i2cAddress = address;
|
i2cAddress = address;
|
||||||
|
|
||||||
initialized++;
|
initialized = true;
|
||||||
|
|
||||||
SERIAL_ECHOLNPAIR("Setting up encoder on ", AS_CHAR(axis_codes[encoderAxis]), " axis, addr = ", address);
|
SERIAL_ECHOLNPAIR("Setting up encoder on ", AS_CHAR(axis_codes[encoderAxis]), " axis, addr = ", address);
|
||||||
|
|
||||||
@ -209,8 +209,7 @@ void I2CPositionEncoder::set_homed() {
|
|||||||
delay(10);
|
delay(10);
|
||||||
|
|
||||||
zeroOffset = get_raw_count();
|
zeroOffset = get_raw_count();
|
||||||
homed++;
|
homed = trusted = true;
|
||||||
trusted++;
|
|
||||||
|
|
||||||
#ifdef I2CPE_DEBUG
|
#ifdef I2CPE_DEBUG
|
||||||
SERIAL_CHAR(axis_codes[encoderAxis]);
|
SERIAL_CHAR(axis_codes[encoderAxis]);
|
||||||
|
Loading…
Reference in New Issue
Block a user