Skip to content

Commit

Permalink
Merge pull request #204 from LedgerHQ/spinner-for-stax-swap
Browse files Browse the repository at this point in the history
swap: do not display spinner
  • Loading branch information
sgliner-ledger authored Nov 15, 2023
2 parents 207d24a + f6d5f85 commit f4271f5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/boilerplate/io.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
#include "common/write.h"

#include "dispatcher.h"
#include "../swap/swap_globals.h"

uint16_t G_output_len = 0;

Expand Down Expand Up @@ -126,7 +127,10 @@ uint8_t io_event(uint8_t channel) {
ux_flow_init(0, ux_processing_flow, NULL);
#endif // HAVE_BAGL
#ifdef HAVE_NBGL
nbgl_useCaseSpinner("Processing");

if (!G_swap_state.called_from_swap) {
nbgl_useCaseSpinner("Processing");
}
#endif // HAVE_NBGL
}
}
Expand Down

0 comments on commit f4271f5

Please sign in to comment.