Skip to content

Commit 6e2f074

Browse files
committed
Add inline to recv and setRxIntMsk to remove warning (#4078)
1 parent c274641 commit 6e2f074

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libraries/SoftwareSerial/SoftwareSerial.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,12 +72,12 @@ class SoftwareSerial : public Stream
7272
static SoftwareSerial *active_object;
7373

7474
// private methods
75-
void recv() __attribute__((__always_inline__));
75+
inline void recv() __attribute__((__always_inline__));
7676
uint8_t rx_pin_read();
7777
void tx_pin_write(uint8_t pin_state) __attribute__((__always_inline__));
7878
void setTX(uint8_t transmitPin);
7979
void setRX(uint8_t receivePin);
80-
void setRxIntMsk(bool enable) __attribute__((__always_inline__));
80+
inline void setRxIntMsk(bool enable) __attribute__((__always_inline__));
8181

8282
// Return num - sub, or 1 if the result would be < 1
8383
static uint16_t subtract_cap(uint16_t num, uint16_t sub);

0 commit comments

Comments
 (0)