mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-07 00:09:51 +03:00
spelling checks
This commit is contained in:
@@ -524,7 +524,7 @@ void MyESP::_wifi_setup() {
|
|||||||
WiFi.setSleepMode(WIFI_NONE_SLEEP); // added to possibly fix wifi dropouts in arduino core 2.5.0
|
WiFi.setSleepMode(WIFI_NONE_SLEEP); // added to possibly fix wifi dropouts in arduino core 2.5.0
|
||||||
// ref: https://github.com/esp8266/Arduino/issues/6471
|
// ref: https://github.com/esp8266/Arduino/issues/6471
|
||||||
// ref: https://github.com/esp8266/Arduino/issues/6366
|
// ref: https://github.com/esp8266/Arduino/issues/6366
|
||||||
// high tx power causing weird behavior, slighly lowering from 20.5 to 20.0 may help stability
|
// high tx power causing weird behavior, slightly lowering from 20.5 to 20.0 may help stability
|
||||||
WiFi.setOutputPower(20.0); // in DBM
|
WiFi.setOutputPower(20.0); // in DBM
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
@@ -225,26 +225,26 @@ _EMS_TX_STATUS ICACHE_FLASH_ATTR emsuart_tx_buffer(uint8_t * buf, uint8_t len) {
|
|||||||
emsuart_tx_brk(); // send <BRK>
|
emsuart_tx_brk(); // send <BRK>
|
||||||
} else if (EMS_Sys_Status.emsTxMode == EMS_TXMODE_DEFAULT) {
|
} else if (EMS_Sys_Status.emsTxMode == EMS_TXMODE_DEFAULT) {
|
||||||
/*
|
/*
|
||||||
* based on code from https://github.com/proddy/EMS-ESP/issues/103 by @susisstrolch
|
* based on code from https://github.com/proddy/EMS-ESP/issues/103 by @susisstrolch
|
||||||
* we emit the whole telegram, with Rx interrupt disabled, collecting busmaster response in FIFO.
|
* we emit the whole telegram, with Rx interrupt disabled, collecting busmaster response in FIFO.
|
||||||
* after sending the last char we poll the Rx status until either
|
* after sending the last char we poll the Rx status until either
|
||||||
* - size(Rx FIFO) == size(Tx-Telegram)
|
* - size(Rx FIFO) == size(Tx-Telegram)
|
||||||
* - <BRK> is detected
|
* - <BRK> is detected
|
||||||
* At end of receive we re-enable Rx-INT and send a Tx-BRK in loopback mode.
|
* At end of receive we re-enable Rx-INT and send a Tx-BRK in loopback mode.
|
||||||
*
|
*
|
||||||
* EMS-Bus error handling
|
* EMS-Bus error handling
|
||||||
* 1. Busmaster stops echoing on Tx w/o permission
|
* 1. Busmaster stops echoing on Tx w/o permission
|
||||||
* 2. Busmaster cancel telegram by sending a BRK
|
* 2. Busmaster cancel telegram by sending a BRK
|
||||||
*
|
*
|
||||||
* Case 1. is handled by a watchdog counter which is reset on each
|
* Case 1. is handled by a watchdog counter which is reset on each
|
||||||
* Tx attempt. The timeout should be 20x EMSUART_BIT_TIME plus
|
* Tx attempt. The timeout should be 20x EMSUART_BIT_TIME plus
|
||||||
* some smart guess for processing time on targeted EMS device.
|
* some smart guess for processing time on targeted EMS device.
|
||||||
* We set EMS_Sys_Status.emsTxStatus to EMS_TX_WTD_TIMEOUT and return
|
* We set EMS_Sys_Status.emsTxStatus to EMS_TX_WTD_TIMEOUT and return
|
||||||
*
|
*
|
||||||
* Case 2. is handled via a BRK chk during transmission.
|
* Case 2. is handled via a BRK chk during transmission.
|
||||||
* We set EMS_Sys_Status.emsTxStatus to EMS_TX_BRK_DETECT and return
|
* We set EMS_Sys_Status.emsTxStatus to EMS_TX_BRK_DETECT and return
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
uint16_t wdc = EMS_TX_TO_COUNT;
|
uint16_t wdc = EMS_TX_TO_COUNT;
|
||||||
ETS_UART_INTR_DISABLE(); // disable rx interrupt
|
ETS_UART_INTR_DISABLE(); // disable rx interrupt
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user