mirror of https://github.com/ArduPilot/ardupilot
AP_Logger: fix AP_Logger_Block::get_num_logs()
This commit is contained in:
parent
5a0fe4e322
commit
49bf0a3057
|
@ -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