Open FFBoard
Open source force feedback firmware
PersistentStorage.cpp
Go to the documentation of this file.
1/*
2 * PersistentStorage.cpp
3 *
4 * Created on: 26.02.2020
5 * Author: Yannick
6 */
7
8#include "PersistentStorage.h"
9#include "global_callbacks.h"
10
11//std::vector<PersistentStorage*> PersistentStorage::flashHandlers;
13
16}
17
20}
21
27
28}
34
35}
36
46 }else{
47 this->restoreDelayedFlag = true;
48 }
49}
50
58 if(cls->restoreDelayedFlag){
59 cls->restoreFlash();
60 cls->restoreDelayedFlag = false;
61 }
62 }
63}
virtual void saveFlash()
static std::vector< PersistentStorage * > & getFlashHandlers()
static void restoreFlashStartupCb()
static bool startupComplete
virtual void restoreFlash()
void addCallbackHandler(std::vector< C > &vec, C instance)
void removeCallbackHandler(std::vector< C > &vec, C instance)