File tree 2 files changed +2
-2
lines changed 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -86,7 +86,7 @@ void HardwareSerial::updateBaudRate(unsigned long baud)
86
86
// Make sure that the function that the function pointer is pointing to is inside IRAM
87
87
void HardwareSerial::setRXInterrupt (void (*arg)(char c)){
88
88
uartDisableInterrupt (_uart);
89
- uartEnableInterrupt (_uart, & arg);
89
+ uartEnableInterrupt (_uart, arg);
90
90
}
91
91
92
92
void HardwareSerial::end ()
Original file line number Diff line number Diff line change @@ -87,7 +87,7 @@ static void IRAM_ATTR _uart_isr(void (*arg)(char))
87
87
c = uart -> dev -> fifo .rw_byte ;
88
88
if (arg != NULL ){ // Check if an interrupt handler function has been specified
89
89
// Fully optimized code would not create the queue anymore if an function has been specified as an argument.
90
- (* arg )((char * ) & c ); // There is, call it with c as an parameter. Don't pass it to the queue anymore
90
+ (* arg )((char ) c );
91
91
}else if (uart -> queue != NULL ) {
92
92
xQueueSendFromISR (uart -> queue , & c , & xHigherPriorityTaskWoken );
93
93
}
You can’t perform that action at this time.
0 commit comments