Commit a11d593
committed
fix: make
I've been code golfing in rust again...
By making `available(pipe)` call `available(void)`, we can get the same behavior without instantiating a dummy byte (`RF24_FETCH_NO_PIPE`) . This way `available(pipe)` also doesn't need to check the `pipe` parameter's value; it just mutates it because that is the overload's purpose.
This should decrease the compile size for any app that doesn't actually call `available(pipe)`.available(pipe) depend on available(void)
1 parent 8aa7103 commit a11d593
2 files changed
+6
-15
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1488 | 1488 | | |
1489 | 1489 | | |
1490 | 1490 | | |
1491 | | - | |
1492 | | - | |
| 1491 | + | |
1493 | 1492 | | |
1494 | 1493 | | |
1495 | 1494 | | |
1496 | 1495 | | |
1497 | 1496 | | |
1498 | 1497 | | |
1499 | | - | |
1500 | | - | |
1501 | | - | |
1502 | | - | |
1503 | | - | |
1504 | | - | |
| 1498 | + | |
1505 | 1499 | | |
1506 | | - | |
1507 | | - | |
| 1500 | + | |
| 1501 | + | |
| 1502 | + | |
1508 | 1503 | | |
1509 | 1504 | | |
1510 | 1505 | | |
| |||
1756 | 1751 | | |
1757 | 1752 | | |
1758 | 1753 | | |
1759 | | - | |
1760 | | - | |
| 1754 | + | |
1761 | 1755 | | |
1762 | 1756 | | |
1763 | 1757 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | 47 | | |
51 | 48 | | |
52 | 49 | | |
| |||
0 commit comments