2023-06-27 15:33:30 -07:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "hal_mfs.h"
|
|
|
|
|
2023-06-28 10:49:08 -07:00
|
|
|
#define PERSISTENCE_VERSION 41
|
2023-06-27 15:33:30 -07:00
|
|
|
|
|
|
|
#define MFS_CONFIGURATION_RECORD_ID 1
|
|
|
|
|
|
|
|
struct TestConfiguration {
|
|
|
|
void resetToDefaults() {
|
|
|
|
version = PERSISTENCE_VERSION;
|
2023-06-27 17:04:38 -07:00
|
|
|
updateCounter = 100;
|
2023-06-28 10:49:08 -07:00
|
|
|
rebootCounter = 10;
|
2023-06-27 15:33:30 -07:00
|
|
|
}
|
2023-06-27 15:42:41 -07:00
|
|
|
bool IsValid() const {
|
|
|
|
return version == PERSISTENCE_VERSION;
|
|
|
|
}
|
2023-06-27 15:33:30 -07:00
|
|
|
|
|
|
|
int version;
|
|
|
|
int updateCounter;
|
2023-06-27 17:04:38 -07:00
|
|
|
int rebootCounter;
|
2023-06-27 15:33:30 -07:00
|
|
|
};
|
|
|
|
|
|
|
|
int InitConfiguration();
|
|
|
|
void pokeConfiguration();
|