mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-09 09:28:31 -04:00
AP_Logger: fix AP_Logger_Block::get_num_logs()
This commit is contained in:
parent
0ec6210184
commit
d7033dbf0d
@ -344,7 +344,7 @@ uint16_t AP_Logger_Block::get_num_logs(void)
|
||||
last = GetFileNumber();
|
||||
StartRead(lastpage + 2);
|
||||
if (GetFileNumber() == 0xFFFF) {
|
||||
StartRead(((lastpage >> 8) + 1) << 8); // next sector
|
||||
StartRead(((((lastpage-1)>>8)+1)<<8)+1); // next sector
|
||||
}
|
||||
first = GetFileNumber();
|
||||
if (first > last) {
|
||||
|
Loading…
Reference in New Issue
Block a user