AP_Logger: fix size compare warning

df_PageSize is uint32_t
This commit is contained in:
Pierre Kancir 2022-01-03 14:40:33 +01:00 committed by Peter Barker
parent 7a8cef877b
commit a01bd33f69
1 changed files with 1 additions and 1 deletions

View File

@ -316,7 +316,7 @@ void AP_Logger_DataFlash::flash_test()
for (uint8_t i=1; i<=20; i++) {
printf("Flash check %u\n", i);
PageToBuffer(i);
for (uint16_t j=0; j<df_PageSize; j++) {
for (uint32_t j=0; j<df_PageSize; j++) {
if (buffer[j] != i) {
printf("Test error: page %u j=%u v=%u\n", i, j, buffer[j]);
break;