mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-23 08:15:30 +03:00
various: use ARRAYLEN() in more places.
Signed-off-by: Michael Hope <mlhx@google.com>
This commit is contained in:
parent
4ed6fdfea5
commit
b90ccf4c1a
3 changed files with 6 additions and 3 deletions
|
@ -28,6 +28,7 @@
|
|||
|
||||
#include "common/maths.h"
|
||||
#include "common/axis.h"
|
||||
#include "common/utils.h"
|
||||
|
||||
#include "drivers/system.h"
|
||||
#include "drivers/serial.h"
|
||||
|
@ -185,7 +186,7 @@ static void shiftPacketLog(void)
|
|||
{
|
||||
uint32_t i;
|
||||
|
||||
for (i = sizeof(gpsPacketLog) - 1; i > 0 ; i--) {
|
||||
for (i = ARRAYLEN(gpsPacketLog) - 1; i > 0 ; i--) {
|
||||
gpsPacketLog[i] = gpsPacketLog[i-1];
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue