Skip to content

Commit e0bb91f

Browse files
committed
fix @tyeth reivew
1 parent 6401b50 commit e0bb91f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/i2c/WipperSnapper_I2C.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,14 +171,14 @@ WipperSnapper_Component_I2C::scanAddresses() {
171171
else if (endTransmissionRC == 3) {
172172
// NOTE: The printf below is commented out for performance, this is the
173173
// default case and should typically be hit if the address is not found.
174-
// WS_DEBUG_PRINTLN("[i2c] ERROR: received NACK on transmit of data!");
174+
WS_DEBUG_PRINTLN("[i2c] ERROR: received NACK on transmit of data!");
175175
continue;
176176
} else if (endTransmissionRC == 2) {
177177
WS_DEBUG_PRINTLN("[i2c] ERROR: received NACK on transmit of address!");
178178
scanResp.bus_response =
179179
wippersnapper_i2c_v1_BusResponse_BUS_RESPONSE_UNSPECIFIED;
180180
continue;
181-
} else if (endTransmissionRC == 3) {
181+
} else if (endTransmissionRC == 1) {
182182
WS_DEBUG_PRINTLN("[i2c] ERROR: data too long to fit in transmit buffer!");
183183
scanResp.bus_response =
184184
wippersnapper_i2c_v1_BusResponse_BUS_RESPONSE_UNSPECIFIED;

0 commit comments

Comments
 (0)