Make RTC/NVR a normal device instead of a special thing. Fixes nvr_recalc() being called on systems without NVR, which could cause timer crashes.

This commit is contained in:
SarahW 2019-04-26 14:59:34 +01:00
commit 3508059f16
4 changed files with 90 additions and 52 deletions

View file

@ -1,4 +1,6 @@
void nvr_init();
#include "device.h"
extern device_t nvr_device;
extern int enable_sync;
@ -7,8 +9,6 @@ extern int nvr_dosave;
void loadnvr();
void savenvr();
void nvr_recalc();
FILE *nvrfopen(char *fn, char *mode);
extern uint8_t nvrram[128];