Skip to content

Commit

Permalink
fix for latest api
Browse files Browse the repository at this point in the history
  • Loading branch information
xMasterX committed Oct 16, 2024
1 parent 9473b31 commit 4659aee
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions non_catalog_apps/mp_flipper/upython_repl.c
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ void upython_repl_execute(Cli* cli) {
character = cli_getc(cli);

// Ctrl + C
if(character == CliSymbolAsciiETX) {
if(character == CliKeyETX) {
context->cursor = 0;

furi_string_reset(context->line);
Expand All @@ -299,19 +299,19 @@ void upython_repl_execute(Cli* cli) {
}

// Ctrl + D
if(character == CliSymbolAsciiEOT) {
if(character == CliKeyEOT) {
exit = true;

break;
}

// skip line feed
if(character == CliSymbolAsciiLF) {
if(character == CliKeyLF) {
continue;
}

// handle carriage return
if(character == CliSymbolAsciiCR) {
if(character == CliKeyCR) {
furi_string_push_back(context->code, '\n');
furi_string_cat(context->code, context->line);
furi_string_trim(context->code);
Expand All @@ -332,14 +332,14 @@ void upython_repl_execute(Cli* cli) {
}

// handle tab, do autocompletion
if(character == CliSymbolAsciiTab) {
if(character == CliKeyTab) {
handle_autocomplete(context);

continue;
}

// handle backspace
if(character == CliSymbolAsciiBackspace || character == CliSymbolAsciiDel) {
if(character == CliKeyBackspace || character == CliKeyDEL) {
handle_backspace(context);

continue;
Expand Down

0 comments on commit 4659aee

Please sign in to comment.