mirror of
https://github.com/tillitis/tillitis-key1.git
synced 2025-03-31 19:18:27 -04:00
(fw) Enable FW mode at start.
FW mode must now be explicitlty enabled. App mode will be automatically enabled when jumping to the start of the loaded application. Signed-off-by: Joachim Strömbergson <joachim@assured.se>
This commit is contained in:
parent
23348d3f86
commit
ad18c333af
@ -342,9 +342,6 @@ static void run(const struct context *ctx)
|
||||
#endif
|
||||
// clang-format on
|
||||
|
||||
// Flip over to application mode
|
||||
*switch_app = 1;
|
||||
|
||||
// XXX Firmware stack now no longer available
|
||||
// Don't use any function calls!
|
||||
|
||||
@ -399,6 +396,9 @@ int main(void)
|
||||
uint8_t cmd[CMDLEN_MAXBYTES] = {0};
|
||||
enum state state = FW_STATE_INITIAL;
|
||||
|
||||
// Enable FW mode.
|
||||
*switch_app = 0;
|
||||
|
||||
print_hw_version();
|
||||
|
||||
// Let the app know the function adddress for blake2s()
|
||||
|
Loading…
x
Reference in New Issue
Block a user