mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-23 06:48:16 +00:00
firmware: move storage_update for applyFlags
This commit is contained in:
parent
f35a74323b
commit
dac7efadb8
@ -314,7 +314,6 @@ void fsm_msgApplyFlags(ApplyFlags *msg)
|
||||
{
|
||||
if (msg->has_flags) {
|
||||
storage_applyFlags(msg->flags);
|
||||
storage_update();
|
||||
}
|
||||
fsm_sendSuccess(_("Flags applied"));
|
||||
}
|
||||
|
@ -849,6 +849,7 @@ void storage_applyFlags(uint32_t flags)
|
||||
}
|
||||
storageUpdate.has_flags = true;
|
||||
storageUpdate.flags |= flags;
|
||||
storage_update();
|
||||
}
|
||||
|
||||
uint32_t storage_getFlags(void)
|
||||
|
Loading…
Reference in New Issue
Block a user