kopia lustrzana https://github.com/sh123/esp32_loraprs
Performance optimizations
rodzic
e40011cd46
commit
a24c99b3ed
|
@ -93,7 +93,7 @@ bool BLESerial::begin(const char* localName)
|
|||
if (pRxCharacteristic == nullptr)
|
||||
return false;
|
||||
|
||||
BLESerialCharacteristicCallbacks* bleSerialCharacteristicCallbacks = new BLESerialCharacteristicCallbacks();
|
||||
BLESerialCharacteristicCallbacks* bleSerialCharacteristicCallbacks = new BLESerialCharacteristicCallbacks();
|
||||
bleSerialCharacteristicCallbacks->bleSerial = this;
|
||||
pRxCharacteristic->setCallbacks(bleSerialCharacteristicCallbacks);
|
||||
|
||||
|
@ -156,7 +156,7 @@ size_t BLESerial::write(uint8_t c)
|
|||
uint8_t _c = c;
|
||||
pTxCharacteristic->setValue(&_c, 1);
|
||||
pTxCharacteristic->notify();
|
||||
delay(10); // bluetooth stack will go into congestion, if too many packets are sent
|
||||
delay(3); // bluetooth stack will go into congestion, if too many packets are sent
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue