diff options
| author | Ilya Zhuravlev <whatever@xyz.is> | 2021-01-07 09:17:18 -0500 |
|---|---|---|
| committer | Ilya Zhuravlev <whatever@xyz.is> | 2021-01-07 12:52:56 -0500 |
| commit | cc43ad2b4192f833bce1bd41d4646d5c0da80e68 (patch) | |
| tree | 211ff906ec69a69b714f1a7333e18d19a17fb2e6 /quantum/vial.c | |
| parent | e2447a0eea5b109102e8860cd75e2b57c6220b19 (diff) | |
vial: allow resuming an interrupted unlock sequence
Diffstat (limited to 'quantum/vial.c')
| -rw-r--r-- | quantum/vial.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/quantum/vial.c b/quantum/vial.c index 8499e0a150..3261b0f4ff 100644 --- a/quantum/vial.c +++ b/quantum/vial.c @@ -105,7 +105,8 @@ void vial_handle_cmd(uint8_t *msg, uint8_t length) { memset(msg, 0xFF, length); /* First byte of message contains the status: whether board is unlocked */ msg[0] = vial_unlocked; - msg[1] = 0; + /* Second byte is whether unlock is in progress */ + msg[1] = vial_unlock_in_progress; #ifndef VIAL_INSECURE /* Rest of the message are keys in the matrix that should be held to unlock the board */ for (size_t i = 0; i < VIAL_UNLOCK_NUM_KEYS; ++i) { |
