Permalink
Browse files

Fix hang when SD card fails to init

  • Loading branch information...
neonsea committed Aug 14, 2018
1 parent d470325 commit d334a38ab4061be4324c5aeaa1bcebf68b099fd3
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/firmware.c
View
@@ -400,7 +400,9 @@ void firmware() {
if (!sd_mount()) {
error("Failed to init SD card!\n");
return;
print("Press any key to power off\n");
btn_wait();
i2c_send_byte(I2C_5, 0x3C, MAX77620_REG_ONOFFCNFG1, MAX77620_ONOFFCNFG1_PWR_OFF);
}
print("Welcome to ReiNX %s!\n", VERSION);

0 comments on commit d334a38

Please sign in to comment.