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() {
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;
You can’t perform that action at this time.
0 commit comments