File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -171,14 +171,14 @@ WipperSnapper_Component_I2C::scanAddresses() {
171
171
else if (endTransmissionRC == 3 ) {
172
172
// NOTE: The printf below is commented out for performance, this is the
173
173
// 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!" );
175
175
continue ;
176
176
} else if (endTransmissionRC == 2 ) {
177
177
WS_DEBUG_PRINTLN (" [i2c] ERROR: received NACK on transmit of address!" );
178
178
scanResp.bus_response =
179
179
wippersnapper_i2c_v1_BusResponse_BUS_RESPONSE_UNSPECIFIED;
180
180
continue ;
181
- } else if (endTransmissionRC == 3 ) {
181
+ } else if (endTransmissionRC == 1 ) {
182
182
WS_DEBUG_PRINTLN (" [i2c] ERROR: data too long to fit in transmit buffer!" );
183
183
scanResp.bus_response =
184
184
wippersnapper_i2c_v1_BusResponse_BUS_RESPONSE_UNSPECIFIED;
You can’t perform that action at this time.
0 commit comments