Skip to content

Commit 24cef2e

Browse files
committed
Merge pull request #1146 from sebastienjean/master
Enhancements in SoftwareSerial lib
2 parents 1ca95a7 + 9554c1d commit 24cef2e

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

libraries/SoftwareSerial/SoftwareSerial.cpp

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ The latest version of this library can always be found at
4040
//
4141
#include <avr/interrupt.h>
4242
#include <avr/pgmspace.h>
43-
#include "Arduino.h"
44-
#include "SoftwareSerial.h"
43+
#include <Arduino.h>
44+
#include <SoftwareSerial.h>
4545
//
4646
// Lookup table
4747
//
@@ -70,6 +70,7 @@ static const DELAY_TABLE PROGMEM table[] =
7070
{ 4800, 233, 474, 474, 471, },
7171
{ 2400, 471, 950, 950, 947, },
7272
{ 1200, 947, 1902, 1902, 1899, },
73+
{ 600, 1902, 3804, 3804, 3800, },
7374
{ 300, 3804, 7617, 7617, 7614, },
7475
};
7576

@@ -91,6 +92,7 @@ static const DELAY_TABLE table[] PROGMEM =
9192
{ 4800, 110, 233, 233, 230, },
9293
{ 2400, 229, 472, 472, 469, },
9394
{ 1200, 467, 948, 948, 945, },
95+
{ 600, 948, 1895, 1895, 1890, },
9496
{ 300, 1895, 3805, 3805, 3802, },
9597
};
9698

@@ -115,6 +117,7 @@ static const DELAY_TABLE PROGMEM table[] =
115117
{ 4800, 296, 595, 595, 592, },
116118
{ 2400, 592, 1189, 1189, 1186, },
117119
{ 1200, 1187, 2379, 2379, 2376, },
120+
{ 600, 2379, 4759, 4759, 4755, },
118121
{ 300, 4759, 9523, 9523, 9520, },
119122
};
120123

0 commit comments

Comments
 (0)