1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-07-30 16:24:09 +03:00

600 Baud comm. support, unsupported baudrate notification

- Added a 600 Baud line in DELAY_TABLE, for each CPU frequency.
(successfully tested for 16 MHz)

- begin(long speed) now returns a bool indicating if speed has been
found in DELAY_TABLE (if not, the method returns false immediately)
This commit is contained in:
sebastienjean
2012-12-01 00:20:55 +01:00
parent 0e0715abd3
commit 369aeeef51
2 changed files with 13 additions and 5 deletions

View File

@ -82,7 +82,7 @@ public:
// public methods
SoftwareSerial(uint8_t receivePin, uint8_t transmitPin, bool inverse_logic = false);
~SoftwareSerial();
void begin(long speed);
bool begin(long speed);
bool listen();
void end();
bool isListening() { return this == active_object; }