mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-08 08:49:52 +03:00
cleanup
This commit is contained in:
@@ -67,8 +67,8 @@ static void emsuart_rx_intr_handler(void * para) {
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
* system task triggered on BRK interrupt
|
* system task triggered on BRK interrupt
|
||||||
* Read commands are all asynchronous
|
* incoming received messages are always asynchronous
|
||||||
* When a buffer is full it is sent to the ems_parseTelegram() function in ems.cpp. This is the hook
|
* The full buffer is sent to the ems_parseTelegram() function in ems.cpp.
|
||||||
*/
|
*/
|
||||||
static void ICACHE_FLASH_ATTR emsuart_recvTask(os_event_t * events) {
|
static void ICACHE_FLASH_ATTR emsuart_recvTask(os_event_t * events) {
|
||||||
// get next free EMS Receive buffer
|
// get next free EMS Receive buffer
|
||||||
@@ -144,7 +144,7 @@ void ICACHE_FLASH_ATTR emsuart_init() {
|
|||||||
void ICACHE_FLASH_ATTR emsuart_stop() {
|
void ICACHE_FLASH_ATTR emsuart_stop() {
|
||||||
ETS_UART_INTR_DISABLE();
|
ETS_UART_INTR_DISABLE();
|
||||||
//ETS_UART_INTR_ATTACH(NULL, NULL);
|
//ETS_UART_INTR_ATTACH(NULL, NULL);
|
||||||
//system_uart_swap(); // to be sure, swap Tx/Rx back. Idea from Simon Arlott
|
//system_uart_swap(); // to be sure, swap Tx/Rx back.
|
||||||
//detachInterrupt(digitalPinToInterrupt(D7));
|
//detachInterrupt(digitalPinToInterrupt(D7));
|
||||||
//noInterrupts();
|
//noInterrupts();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user