mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-10 09:58:28 -04:00
DataFlash: use ARRAY_SIZE macro
This commit is contained in:
parent
d8b70dc0c5
commit
3136b8916c
@ -68,7 +68,7 @@ static uint16_t log_num;
|
||||
|
||||
void setup()
|
||||
{
|
||||
DataFlash.Init(log_structure, sizeof(log_structure)/sizeof(log_structure[0]));
|
||||
DataFlash.Init(log_structure, ARRAY_SIZE(log_structure));
|
||||
|
||||
hal.console->println("Dataflash Log Test 1.0");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user