mirror of
https://github.com/opentx/opentx.git
synced 2025-07-26 01:35:21 +03:00
[Horus] Ram backup write should be working now. Still needs to be tested with a restore on WDT
This commit is contained in:
parent
52ebba3802
commit
04966868eb
5 changed files with 65 additions and 31 deletions
|
@ -23,10 +23,20 @@
|
|||
uint8_t storageDirtyMsk;
|
||||
tmr10ms_t storageDirtyTime10ms;
|
||||
|
||||
#if defined(RAMBACKUP)
|
||||
uint8_t rambackupDirtyMsk;
|
||||
tmr10ms_t rambackupDirtyTime10ms;
|
||||
#endif
|
||||
|
||||
void storageDirty(uint8_t msk)
|
||||
{
|
||||
storageDirtyMsk |= msk;
|
||||
storageDirtyTime10ms = get_tmr10ms() ;
|
||||
storageDirtyTime10ms = get_tmr10ms();
|
||||
|
||||
#if defined(RAMBACKUP)
|
||||
rambackupDirtyMsk = storageDirtyMsk;
|
||||
rambackupDirtyTime10ms = storageDirtyTime10ms;
|
||||
#endif
|
||||
}
|
||||
|
||||
void preModelLoad()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue