|
|
@@ -54,7 +54,9 @@ static void power_cli_command_print_usage() {
|
|
|
printf("\treboot2dfu\t - reboot to dfu bootloader\r\n");
|
|
|
printf("\tdebug\t - show debug information\r\n");
|
|
|
printf("\t5v <0 or 1>\t - enable or disable 5v ext\r\n");
|
|
|
- printf("\t3v3 <0 or 1>\t - enable or disable 3v3 ext\r\n");
|
|
|
+ if(furi_hal_rtc_is_flag_set(FuriHalRtcFlagDebug)) {
|
|
|
+ printf("\t3v3 <0 or 1>\t - enable or disable 3v3 ext\r\n");
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
void power_cli(Cli* cli, string_t args, void* context) {
|
|
|
@@ -92,9 +94,11 @@ void power_cli(Cli* cli, string_t args, void* context) {
|
|
|
break;
|
|
|
}
|
|
|
|
|
|
- if(string_cmp_str(cmd, "3v3") == 0) {
|
|
|
- power_cli_3v3(cli, args);
|
|
|
- break;
|
|
|
+ if(furi_hal_rtc_is_flag_set(FuriHalRtcFlagDebug)) {
|
|
|
+ if(string_cmp_str(cmd, "3v3") == 0) {
|
|
|
+ power_cli_3v3(cli, args);
|
|
|
+ break;
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
power_cli_command_print_usage();
|