vial: allow re-locking keyboard

This commit is contained in:
Ilya Zhuravlev 2020-12-29 15:02:02 -05:00
parent 0fd15c51f3
commit 1b670b3fea

View file

@ -34,6 +34,7 @@ enum {
vial_get_lock = 0x05,
vial_unlock_start = 0x06,
vial_unlock_poll = 0x07,
vial_lock = 0x08,
};
#ifdef VIAL_INSECURE
@ -150,6 +151,10 @@ void vial_handle_cmd(uint8_t *msg, uint8_t length) {
msg[2] = vial_unlock_counter;
break;
}
case vial_lock: {
vial_unlocked = 0;
break;
}
}
}