Skip to content

Commit

Permalink
Merge pull request #56 from berichan/master
Browse files Browse the repository at this point in the history
14.0.0
  • Loading branch information
berichan authored Mar 25, 2022
2 parents 567310b + 26dac55 commit 687906b
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions sys-botbase/source/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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);
}
}

Expand All @@ -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);
}
}

Expand Down

0 comments on commit 687906b

Please sign in to comment.