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.
2 parents 684cafc + d7e4606 commit c0f158fCopy full SHA for c0f158f
libraries/Wire/Wire.cpp
@@ -477,8 +477,8 @@ uint8_t TwoWire::read_from(uint8_t address, uint8_t* data, uint8_t length, unsig
477
err = m_read(&m_i2c_ctrl,data,length,!sendStop);
478
}
479
480
- timeout_ms = millis() + timeout_ms;
481
- while(millis() < timeout_ms && bus_status == WIRE_STATUS_UNSET && err == FSP_SUCCESS) {
+ uint32_tconst start = millis();
+ while(((millis() - start) < timeout_ms) && bus_status == WIRE_STATUS_UNSET && err == FSP_SUCCESS) {
482
483
484
@@ -505,8 +505,8 @@ uint8_t TwoWire::write_to(uint8_t address, uint8_t* data, uint8_t length, unsign
505
err = m_write(&m_i2c_ctrl,data,length,!sendStop);
506
507
508
509
510
511
512
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments