瀏覽代碼

Fixed positions count from index, used to determine if backup is needed

tags/v1.2.0
Bertrand Lemasle 7 年之前
父節點
當前提交
ebfc1698b3
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. +1
    -1
      GpsTracker/Positions.cpp

+ 1
- 1
GpsTracker/Positions.cpp 查看文件

@@ -141,7 +141,7 @@ namespace positions {
config_t *config = &config::main::value;
uint16_t lastEntry = config->lastEntry;

if (lastEntry < config->firstEntry) { lastEntry += details::maxEntryIndex; }
if (lastEntry < fromIndex) { lastEntry += details::maxEntryIndex; }

return lastEntry - fromIndex;
}


Loading…
取消
儲存