mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-23 16:25:31 +03:00
Renamed min, max and abs macros to MIN MAX and ABS.
This commit is contained in:
parent
616c40a827
commit
be03ed95fa
15 changed files with 42 additions and 42 deletions
|
@ -894,7 +894,7 @@ static void configureBlackboxPort(void)
|
|||
*
|
||||
* 9 / 1250 = 7200 / 1000000
|
||||
*/
|
||||
serialChunkSize = max((masterConfig.looptime * 9) / 1250, 4);
|
||||
serialChunkSize = MAX((masterConfig.looptime * 9) / 1250, 4);
|
||||
}
|
||||
|
||||
static void releaseBlackboxPort(void)
|
||||
|
@ -1133,7 +1133,7 @@ static bool blackboxWriteSysinfo()
|
|||
}
|
||||
|
||||
// How many bytes can we afford to transmit this loop?
|
||||
xmitState.u.serialBudget = min(xmitState.u.serialBudget + serialChunkSize, 64);
|
||||
xmitState.u.serialBudget = MIN(xmitState.u.serialBudget + serialChunkSize, 64);
|
||||
|
||||
// Most headers will consume at least 20 bytes so wait until we've built up that much link budget
|
||||
if (xmitState.u.serialBudget < 20) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue