Commit 416198a
committed
Simplify SoftwareSerial::write
Before, there was nearly identical code for the inverted and regular
cases. However, simply inverting the byte in the inverted case allows
using the regular code twice, reducing the generated code size by 100
bytes (on an Arduino Uno and gcc 4.3, on gcc 4.8 the reduction is 50
bytes).1 parent 6685aa9 commit 416198a
File tree
1 file changed
+10
-23
lines changed- hardware/arduino/avr/libraries/SoftwareSerial
1 file changed
+10
-23
lines changedLines changed: 10 additions & 23 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
486 | 486 | | |
487 | 487 | | |
488 | 488 | | |
489 | | - | |
490 | | - | |
491 | | - | |
492 | | - | |
493 | | - | |
494 | | - | |
495 | | - | |
496 | | - | |
497 | | - | |
498 | | - | |
| 489 | + | |
499 | 490 | | |
500 | | - | |
501 | | - | |
502 | | - | |
| 491 | + | |
503 | 492 | | |
504 | | - | |
505 | | - | |
506 | | - | |
507 | | - | |
508 | | - | |
509 | | - | |
510 | | - | |
511 | | - | |
512 | | - | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
513 | 497 | | |
514 | | - | |
| 498 | + | |
515 | 499 | | |
516 | 500 | | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
517 | 504 | | |
518 | 505 | | |
519 | 506 | | |
| |||
0 commit comments