mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-08 08:49:52 +03:00
make linter happy
This commit is contained in:
@@ -57,12 +57,11 @@ void EMSuart::emsuart_recvTask(void * para) {
|
|||||||
* UART interrupt, on break read the fifo and put the whole telegram to ringbuffer
|
* UART interrupt, on break read the fifo and put the whole telegram to ringbuffer
|
||||||
*/
|
*/
|
||||||
void IRAM_ATTR EMSuart::emsuart_rx_intr_handler(void * para) {
|
void IRAM_ATTR EMSuart::emsuart_rx_intr_handler(void * para) {
|
||||||
static uint8_t rxbuf[EMS_MAXBUFFERSIZE];
|
|
||||||
static uint8_t length;
|
|
||||||
portENTER_CRITICAL(&mux);
|
portENTER_CRITICAL(&mux);
|
||||||
if (EMS_UART.int_st.brk_det) {
|
if (EMS_UART.int_st.brk_det) {
|
||||||
EMS_UART.int_clr.brk_det = 1; // clear flag
|
EMS_UART.int_clr.brk_det = 1; // clear flag
|
||||||
length = 0;
|
uint8_t rxbuf[EMS_MAXBUFFERSIZE];
|
||||||
|
uint8_t length = 0;
|
||||||
while (EMS_UART.status.rxfifo_cnt) {
|
while (EMS_UART.status.rxfifo_cnt) {
|
||||||
uint8_t rx = EMS_UART.fifo.rw_byte; // read all bytes from fifo
|
uint8_t rx = EMS_UART.fifo.rw_byte; // read all bytes from fifo
|
||||||
if (length < EMS_MAXBUFFERSIZE) {
|
if (length < EMS_MAXBUFFERSIZE) {
|
||||||
|
|||||||
Reference in New Issue
Block a user