File tree 3 files changed +7
-7
lines changed
3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -111,12 +111,12 @@ void TwoWire::setClock(uint32_t clock)
111
111
* the default.
112
112
*
113
113
* @param timeout a timeout value in microseconds, if zero then timeout checking is disabled
114
- * @param reset_with_timeout if true then TWI interface will be automatically reset on timeout
114
+ * @param reset_on_timeout if true then TWI interface will be automatically reset on timeout
115
115
* if false then TWI interface will not be reset on timeout
116
116
117
117
*/
118
- void TwoWire::setWireTimeout (uint32_t timeout, bool reset_with_timeout ){
119
- twi_setTimeoutInMicros (timeout, reset_with_timeout );
118
+ void TwoWire::setWireTimeout (uint32_t timeout, bool reset_on_timeout ){
119
+ twi_setTimeoutInMicros (timeout, reset_on_timeout );
120
120
}
121
121
122
122
/* **
Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ class TwoWire : public Stream
62
62
void begin (int );
63
63
void end ();
64
64
void setClock (uint32_t );
65
- void setWireTimeout (uint32_t timeout = 25000 , bool reset_with_timeout = false );
65
+ void setWireTimeout (uint32_t timeout = 25000 , bool reset_on_timeout = false );
66
66
bool getWireTimeoutFlag (void );
67
67
void clearWireTimeoutFlag (void );
68
68
void beginTransmission (uint8_t );
Original file line number Diff line number Diff line change @@ -451,13 +451,13 @@ void twi_releaseBus(void)
451
451
* Function twi_setTimeoutInMicros
452
452
* Desc set a timeout for while loops that twi might get stuck in
453
453
* Input timeout value in microseconds (0 means never time out)
454
- * Input reset_with_timeout : true causes timeout events to reset twi
454
+ * Input reset_on_timeout : true causes timeout events to reset twi
455
455
* Output none
456
456
*/
457
- void twi_setTimeoutInMicros (uint32_t timeout , bool reset_with_timeout ){
457
+ void twi_setTimeoutInMicros (uint32_t timeout , bool reset_on_timeout ){
458
458
twi_timed_out_flag = false;
459
459
twi_timeout_us = timeout ;
460
- twi_do_reset_on_timeout = reset_with_timeout ;
460
+ twi_do_reset_on_timeout = reset_on_timeout ;
461
461
}
462
462
463
463
/*
You can’t perform that action at this time.
0 commit comments