mirror of
https://github.com/Polprzewodnikowy/SummerCart64.git
synced 2024-11-24 14:46:53 +01:00
[SC64][SW] Release SD lock on init error
This commit is contained in:
parent
74e20cb8cc
commit
db4f16754f
@ -655,6 +655,9 @@ void cfg_process (void) {
|
||||
led_activity_on();
|
||||
error = sd_card_init();
|
||||
led_activity_off();
|
||||
if (error != SD_OK) {
|
||||
sd_release_lock(SD_LOCK_N64);
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
||||
|
@ -404,6 +404,9 @@ static void usb_rx_process (void) {
|
||||
led_activity_on();
|
||||
error = sd_card_init();
|
||||
led_activity_off();
|
||||
if (error != SD_OK) {
|
||||
sd_release_lock(SD_LOCK_USB);
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user