Commit c025b3f
JTrantow
Back to original voodoo caused by conflating modbus timing calculation with pktuart hardware implementation.
Note:
(175u * baudrate + 99999u) / 100000u; could be implemented as (7u * baudrate + 3999(/4000; which would improve the calculation range but doesn't matter because already screening out large baud rates.1 parent c28ccaa commit c025b3f
1 file changed
Lines changed: 5 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
374 | 374 | | |
375 | 375 | | |
376 | 376 | | |
377 | | - | |
378 | | - | |
379 | 377 | | |
380 | | - | |
381 | | - | |
382 | | - | |
| 378 | + | |
383 | 379 | | |
384 | | - | |
| 380 | + | |
385 | 381 | | |
386 | 382 | | |
387 | 383 | | |
388 | | - | |
| 384 | + | |
389 | 385 | | |
390 | | - | |
| 386 | + | |
391 | 387 | | |
392 | 388 | | |
393 | 389 | | |
394 | | - | |
| 390 | + | |
395 | 391 | | |
396 | 392 | | |
397 | 393 | | |
| |||
0 commit comments