File tree 2 files changed +3
-4
lines changed
2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change 49
49
#endif
50
50
51
51
// GodMode9 version
52
- #define VERSION "1.2.6 "
52
+ #define VERSION "1.2.7 "
53
53
54
54
// input / output paths
55
55
#define SUPPORT_PATHS "0:/gm9/support", "0:", "0:/files9" // legacy paths
Original file line number Diff line number Diff line change 1
1
#include "power.h"
2
2
#include "i2c.h"
3
3
#include "cache.h"
4
- #include "ui.h"
5
4
6
5
void Reboot () {
7
- ClearScreenF (true, true, COLOR_STD_BG );
6
+ I2C_writeReg ( I2C_DEV_MCU , 0x22 , 1 << 0 ); // poweroff LCD to prevent MCU hangs
8
7
flushEntireDCache ();
9
8
if (I2C_writeReg (I2C_DEV_MCU , 0x20 , 1 << 2 ))
10
9
while (true);
11
10
}
12
11
13
12
void PowerOff ()
14
13
{
15
- ClearScreenF (true, true, COLOR_STD_BG );
14
+ I2C_writeReg ( I2C_DEV_MCU , 0x22 , 1 << 0 ); // poweroff LCD to prevent MCU hangs
16
15
flushEntireDCache ();
17
16
if (I2C_writeReg (I2C_DEV_MCU , 0x20 , 1 << 0 ))
18
17
while (true);
You can’t perform that action at this time.
0 commit comments