aboutsummaryrefslogtreecommitdiff
path: root/libraries/SoftwareSerial
diff options
context:
space:
mode:
authorSandeep Mistry <s.mistry@arduino.cc>2015-11-05 14:17:38 -0500
committerSandeep Mistry <s.mistry@arduino.cc>2015-11-05 14:28:29 -0500
commit6e2f0746bd133302992aabe6fc2c18141c5b35f1 (patch)
treeb9bd105b6264d2543cddae99e6b10b7561a8b9fe /libraries/SoftwareSerial
parentc274641bd699449b1b3b091c9cc5e08085178c00 (diff)
Add inline to recv and setRxIntMsk to remove warning (#4078)
Diffstat (limited to 'libraries/SoftwareSerial')
-rw-r--r--libraries/SoftwareSerial/SoftwareSerial.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/libraries/SoftwareSerial/SoftwareSerial.h b/libraries/SoftwareSerial/SoftwareSerial.h
index 274f3df..5a40d4a 100644
--- a/libraries/SoftwareSerial/SoftwareSerial.h
+++ b/libraries/SoftwareSerial/SoftwareSerial.h
@@ -72,12 +72,12 @@ private:
static SoftwareSerial *active_object;
// private methods
- void recv() __attribute__((__always_inline__));
+ inline void recv() __attribute__((__always_inline__));
uint8_t rx_pin_read();
void tx_pin_write(uint8_t pin_state) __attribute__((__always_inline__));
void setTX(uint8_t transmitPin);
void setRX(uint8_t receivePin);
- void setRxIntMsk(bool enable) __attribute__((__always_inline__));
+ inline void setRxIntMsk(bool enable) __attribute__((__always_inline__));
// Return num - sub, or 1 if the result would be < 1
static uint16_t subtract_cap(uint16_t num, uint16_t sub);