1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-23 00:05:33 +03:00

Renamed CLI setting blackbox_p_denom to blackbox_p_ratio

This commit is contained in:
Martin Budden 2017-09-15 09:31:37 +01:00
parent 6bf755d0bd
commit a9d56097d1
2 changed files with 2 additions and 2 deletions

View file

@ -1701,7 +1701,7 @@ void blackboxInit(void)
// by default p_denom is 32 and a P-frame is written every 1ms
// if p_denom is zero then no P-frames are logged
if (blackboxConfig()->p_denom == 0) {
blackboxPInterval = 0;
blackboxPInterval = 0; // blackboxPInterval not used when p_denom is zero, so just set it to zero
} else if (blackboxConfig()->p_denom > blackboxIInterval && blackboxIInterval >= 32) {
blackboxPInterval = 1;
} else {