aboutsummaryrefslogtreecommitdiff
path: root/cores/arduino/HardwareSerial.cpp
diff options
context:
space:
mode:
authorCristian Maglie <c.maglie@bug.st>2014-01-16 13:50:59 +0100
committerCristian Maglie <c.maglie@bug.st>2014-01-16 13:50:59 +0100
commit0a0cda4f04844cc209c0523ba59e8a2f47fc502e (patch)
treeaad05a8bd711581659761760ac0b11ac8380fe78 /cores/arduino/HardwareSerial.cpp
parent4bc8aa15e3309496e2adf98b5933e4825341df07 (diff)
Slightly reduce code utilization by inlining HardwareSerail begin(baud) and operator bool()
Diffstat (limited to 'cores/arduino/HardwareSerial.cpp')
-rw-r--r--cores/arduino/HardwareSerial.cpp9
1 files changed, 0 insertions, 9 deletions
diff --git a/cores/arduino/HardwareSerial.cpp b/cores/arduino/HardwareSerial.cpp
index f95fa5d..a5a3462 100644
--- a/cores/arduino/HardwareSerial.cpp
+++ b/cores/arduino/HardwareSerial.cpp
@@ -281,11 +281,6 @@ HardwareSerial::HardwareSerial(
// Public Methods //////////////////////////////////////////////////////////////
-void HardwareSerial::begin(unsigned long baud)
-{
- begin(baud, SERIAL_8N1);
-}
-
void HardwareSerial::begin(unsigned long baud, byte config)
{
uint16_t baud_setting;
@@ -402,10 +397,6 @@ size_t HardwareSerial::write(uint8_t c)
return 1;
}
-HardwareSerial::operator bool() {
- return true;
-}
-
// Preinstantiate Objects //////////////////////////////////////////////////////
#if defined(UBRRH) && defined(UBRRL)