Преглед изворни кода

Merge mp_flipper from https://github.com/xMasterX/all-the-plugins

# Conflicts:
#	mp_flipper/upython_repl.c
Willy-JL пре 9 месеци
родитељ
комит
727aaa5ec9
2 измењених фајлова са 5 додато и 5 уклоњено
  1. 1 1
      mp_flipper/.gitsubtree
  2. 4 4
      mp_flipper/upython_cli.c

+ 1 - 1
mp_flipper/.gitsubtree

@@ -1,2 +1,2 @@
-https://github.com/xMasterX/all-the-plugins dev non_catalog_apps/mp_flipper 8581870011ec7f1f80fffa14dbd3b1d6b4ddb635
+https://github.com/xMasterX/all-the-plugins dev non_catalog_apps/mp_flipper e4bf49882c5f590746e35583d821a926c757d9e7
 https://github.com/ofabel/mp-flipper master /

+ 4 - 4
mp_flipper/upython_cli.c

@@ -62,9 +62,9 @@ void upython_cli_register(void* args) {
         action = ActionNone;
     }
 
-    Cli* cli = furi_record_open(RECORD_CLI);
+    CliRegistry* registry = furi_record_open(RECORD_CLI);
 
-    cli_add_command(cli, CLI, CliCommandFlagParallelSafe, upython_cli, NULL);
+    cli_registry_add_command(registry, CLI, CliCommandFlagParallelSafe, upython_cli, NULL);
 
     furi_record_close(RECORD_CLI);
 }
@@ -76,9 +76,9 @@ void upython_cli_unregister(void* args) {
         return;
     }
 
-    Cli* cli = furi_record_open(RECORD_CLI);
+    CliRegistry* registry = furi_record_open(RECORD_CLI);
 
-    cli_delete_command(cli, CLI);
+    cli_registry_delete_command(registry, CLI);
 
     furi_record_close(RECORD_CLI);
 }