mirror of
https://github.com/markqvist/OpenModem.git
synced 2025-05-02 14:36:20 -04:00
Implemented easy location update sending
This commit is contained in:
parent
c6748c6e4a
commit
6367ffdb64
9 changed files with 4282 additions and 3586 deletions
|
@ -463,7 +463,7 @@ static uint16_t uart_period(unsigned long bps)
|
|||
uint16_t period = DIV_ROUND(CPU_FREQ / 16UL, bps) - 1;
|
||||
|
||||
#ifdef _DEBUG
|
||||
long skew = bps - (long)(period + 1) * (CPU_FREQ / 16);
|
||||
//long skew = bps - (long)(period + 1) * (CPU_FREQ / 16);
|
||||
/* 8N1 is reliable within 3% skew */
|
||||
//if ((unsigned long)ABS(skew) > bps / (100 / 3)) kprintf("Baudrate off by %ldbps\n", skew);
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue