We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 78367af commit dda19cdCopy full SHA for dda19cd
src/components/i2c/drivers/WipperSnapper_I2C_Driver_AS5600.h
@@ -99,6 +99,7 @@ class WipperSnapper_I2C_Driver_AS5600 : public WipperSnapper_I2C_Driver {
99
100
bool readSensor() {
101
if (!_as5600->isMagnetDetected()) {
102
+ WS_DEBUG_PRINTLN("Magnet not detected!");
103
return false;
104
}
105
@@ -125,6 +126,7 @@ class WipperSnapper_I2C_Driver_AS5600 : public WipperSnapper_I2C_Driver {
125
126
WS_DEBUG_PRINTLN(" | ML: magnet too weak");
127
128
129
+ _angle = (float)angle;
130
return true;
131
132
0 commit comments