|
@@ -47,7 +47,7 @@ void I2CPositionEncoder::init(const uint8_t address, const AxisEnum axis) {
|
47
|
47
|
encoderAxis = axis;
|
48
|
48
|
i2cAddress = address;
|
49
|
49
|
|
50
|
|
- initialized++;
|
|
50
|
+ initialized = true;
|
51
|
51
|
|
52
|
52
|
SERIAL_ECHOLNPAIR("Setting up encoder on ", AS_CHAR(axis_codes[encoderAxis]), " axis, addr = ", address);
|
53
|
53
|
|
|
@@ -209,8 +209,7 @@ void I2CPositionEncoder::set_homed() {
|
209
|
209
|
delay(10);
|
210
|
210
|
|
211
|
211
|
zeroOffset = get_raw_count();
|
212
|
|
- homed++;
|
213
|
|
- trusted++;
|
|
212
|
+ homed = trusted = true;
|
214
|
213
|
|
215
|
214
|
#ifdef I2CPE_DEBUG
|
216
|
215
|
SERIAL_CHAR(axis_codes[encoderAxis]);
|