1
0
Fork 0
mirror of https://github.com/Atmosphere-NX/Atmosphere.git synced 2024-11-26 13:52:21 +00:00

Fix off-by-one (thanks @CtCaer)

This commit is contained in:
Michael Scire 2019-02-14 04:29:12 -08:00
parent 56246551e6
commit 85669ef491

View file

@ -141,10 +141,10 @@ static void setup_se(void) {
unsigned int master_kek_source_ind; unsigned int master_kek_source_ind;
switch (exosphere_get_target_firmware()) { switch (exosphere_get_target_firmware()) {
case ATMOSPHERE_TARGET_FIRMWARE_620: case ATMOSPHERE_TARGET_FIRMWARE_620:
master_kek_source_ind = MASTERKEY_REVISION_620 - MASTERKEY_REVISION_600_610; master_kek_source_ind = MASTERKEY_REVISION_620 - MASTERKEY_REVISION_620;
break; break;
case ATMOSPHERE_TARGET_FIRMWARE_700: case ATMOSPHERE_TARGET_FIRMWARE_700:
master_kek_source_ind = MASTERKEY_REVISION_700_CURRENT - MASTERKEY_REVISION_600_610; master_kek_source_ind = MASTERKEY_REVISION_700_CURRENT - MASTERKEY_REVISION_620;
break; break;
default: default:
generic_panic(); generic_panic();