Implemented easy location update sending

This commit is contained in:
Mark Qvist 2014-06-19 15:36:12 +02:00
parent c6748c6e4a
commit 6367ffdb64
9 changed files with 4282 additions and 3586 deletions

View file

@ -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