diff --git a/sys-botbase/source/main.c b/sys-botbase/source/main.c index 6f0f960..ad79e50 100644 --- a/sys-botbase/source/main.c +++ b/sys-botbase/source/main.c @@ -107,9 +107,12 @@ void __appInit(void) rc = viInitialize(ViServiceType_Default); if (R_FAILED(rc)) fatalThrow(rc); - rc = lblInitialize(); - if (R_FAILED(rc)) - fatalThrow(rc); + if (hosversionBefore(14,0,0)) // lbl max sessions when 14.0.0 + { + rc = lblInitialize(); + if (R_FAILED(rc)) + fatalThrow(rc); + } } void __appExit(void) @@ -797,7 +800,8 @@ int argmain(int argc, char **argv) rc = viSetDisplayPowerState(&temp_display, ViPowerState_NotScanning); // not scanning keeps the screen on but does not push new pixels to the display. Battery save is non-negligible and should be used where possible svcSleepThread(1e+6l); viCloseDisplay(&temp_display); - lblSwitchBacklightOff(1ul); + if (hosversionBefore(14,0,0)) + lblSwitchBacklightOff(1ul); } } @@ -813,7 +817,8 @@ int argmain(int argc, char **argv) rc = viSetDisplayPowerState(&temp_display, ViPowerState_On); svcSleepThread(1e+6l); viCloseDisplay(&temp_display); - lblSwitchBacklightOn(1ul); + if (hosversionBefore(14,0,0)) + lblSwitchBacklightOn(1ul); } }