DataFlash: use ARRAY_SIZE macro

This commit is contained in:
Lucas De Marchi 2015-07-20 16:53:47 -03:00 committed by Randy Mackay
parent d8b70dc0c5
commit 3136b8916c
1 changed files with 1 additions and 1 deletions

View File

@ -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");