Skip to content

Commit

Permalink
WIP - add field to features call return object
Browse files Browse the repository at this point in the history
  • Loading branch information
pastaghost authored and mrnerdhair committed Apr 18, 2022
1 parent 015dbdc commit 93afdd1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/firmware/fsm_msg_common.h
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,11 @@ void fsm_msgGetFeatures(GetFeatures *msg) {
sizeof(resp->policies) / sizeof(resp->policies[0]) == POLICY_COUNT,
"update messages.options to match POLICY_COUNT");

/* Auto-lock delay */
uint32_t auto_lock_delay = storage_getAutoLockDelayMs()
resp->has_auto_lock_delay_ms = auto_lock_delay ? true : false;
resp->auto_lock_delay_ms = auto_lock_delay;

msg_write(MessageType_MessageType_Features, resp);
}

Expand Down

0 comments on commit 93afdd1

Please sign in to comment.