File tree 1 file changed +6
-6
lines changed
libraries/ESP8266WiFi/src/include
1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -437,7 +437,7 @@ class ClientContext
437
437
size_t _write_from_source (DataSource* ds)
438
438
{
439
439
assert (_datasource == nullptr );
440
- assert (_send_waiting == 0 );
440
+ assert (! _send_waiting);
441
441
_datasource = ds;
442
442
_written = 0 ;
443
443
_op_start_time = millis ();
@@ -455,10 +455,10 @@ class ClientContext
455
455
break ;
456
456
}
457
457
458
- ++ _send_waiting;
458
+ _send_waiting = true ;
459
459
esp_yield ();
460
460
} while (true );
461
- _send_waiting = 0 ;
461
+ _send_waiting = false ;
462
462
463
463
if (_sync)
464
464
wait_until_sent ();
@@ -525,8 +525,8 @@ class ClientContext
525
525
526
526
void _write_some_from_cb ()
527
527
{
528
- if (_send_waiting == 1 ) {
529
- _send_waiting-- ;
528
+ if (_send_waiting) {
529
+ _send_waiting = false ;
530
530
esp_schedule ();
531
531
}
532
532
}
@@ -650,7 +650,7 @@ class ClientContext
650
650
size_t _written = 0 ;
651
651
uint32_t _timeout_ms = 5000 ;
652
652
uint32_t _op_start_time = 0 ;
653
- uint8_t _send_waiting = 0 ;
653
+ bool _send_waiting = false ;
654
654
uint8_t _connect_pending = 0 ;
655
655
656
656
int8_t _refcnt;
You can’t perform that action at this time.
0 commit comments