Skip to content

Commit 8a27284

Browse files
committed
Fixed HardwareSerial setRXInterrupt argument type
1 parent 38914ff commit 8a27284

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

cores/esp32/HardwareSerial.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ void HardwareSerial::updateBaudRate(unsigned long baud)
8484
}
8585

8686
// Make sure that the function that the function pointer is pointing to is inside IRAM
87-
void HardwareSerial::setRXInterrupt(void (*arg)()){
87+
void HardwareSerial::setRXInterrupt(void (*arg)(char* c)){
8888
uartDisableInterrupt(_uart);
8989
uartEnableInterrupt(_uart, &arg);
9090
}

cores/esp32/HardwareSerial.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ class HardwareSerial: public Stream
5858
void begin(unsigned long baud, uint32_t config=SERIAL_8N1, int8_t rxPin=-1, int8_t txPin=-1, bool invert=false, unsigned long timeout_ms = 20000UL);
5959
void end();
6060
void updateBaudRate(unsigned long baud);
61-
void setRXInterrupt(void (*arg)());
61+
void setRXInterrupt(void (*arg)(char* c));
6262
int available(void);
6363
int availableForWrite(void);
6464
int peek(void);

0 commit comments

Comments
 (0)