Consistency
This commit is contained in:
parent
31458e9938
commit
d6f66d24fa
@ -55,10 +55,10 @@ void writeConfig(const char *configPath, u32 configTemp)
|
|||||||
configData.formatVersionMajor = CONFIG_VERSIONMAJOR;
|
configData.formatVersionMajor = CONFIG_VERSIONMAJOR;
|
||||||
configData.formatVersionMinor = CONFIG_VERSIONMINOR;
|
configData.formatVersionMinor = CONFIG_VERSIONMINOR;
|
||||||
|
|
||||||
if(!fileWrite(&configData, configPath, sizeof(configData)))
|
if(!fileWrite(&configData, configPath, sizeof(cfgData)))
|
||||||
{
|
{
|
||||||
createDirectory("luma");
|
createDirectory("luma");
|
||||||
if(!fileWrite(&configData, configPath, sizeof(configData)))
|
if(!fileWrite(&configData, configPath, sizeof(cfgData)))
|
||||||
error("Error writing the configuration file");
|
error("Error writing the configuration file");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -27,8 +27,6 @@
|
|||||||
#include "draw.h"
|
#include "draw.h"
|
||||||
#include "cache.h"
|
#include "cache.h"
|
||||||
|
|
||||||
extern bool isFirmlaunch;
|
|
||||||
|
|
||||||
u32 waitInput(void)
|
u32 waitInput(void)
|
||||||
{
|
{
|
||||||
u32 pressedKey = 0,
|
u32 pressedKey = 0,
|
||||||
|
@ -28,6 +28,8 @@
|
|||||||
#define REG_TIMER_CNT(i) *(vu16 *)(0x10003002 + 4 * i)
|
#define REG_TIMER_CNT(i) *(vu16 *)(0x10003002 + 4 * i)
|
||||||
#define REG_TIMER_VAL(i) *(vu16 *)(0x10003000 + 4 * i)
|
#define REG_TIMER_VAL(i) *(vu16 *)(0x10003000 + 4 * i)
|
||||||
|
|
||||||
|
extern bool isFirmlaunch;
|
||||||
|
|
||||||
u32 waitInput(void);
|
u32 waitInput(void);
|
||||||
void mcuReboot(void);
|
void mcuReboot(void);
|
||||||
void mcuPowerOff(void);
|
void mcuPowerOff(void);
|
||||||
|
Reference in New Issue
Block a user