vial: allow re-locking keyboard
This commit is contained in:
parent
0fd15c51f3
commit
1b670b3fea
1 changed files with 5 additions and 0 deletions
|
@ -34,6 +34,7 @@ enum {
|
||||||
vial_get_lock = 0x05,
|
vial_get_lock = 0x05,
|
||||||
vial_unlock_start = 0x06,
|
vial_unlock_start = 0x06,
|
||||||
vial_unlock_poll = 0x07,
|
vial_unlock_poll = 0x07,
|
||||||
|
vial_lock = 0x08,
|
||||||
};
|
};
|
||||||
|
|
||||||
#ifdef VIAL_INSECURE
|
#ifdef VIAL_INSECURE
|
||||||
|
@ -150,6 +151,10 @@ void vial_handle_cmd(uint8_t *msg, uint8_t length) {
|
||||||
msg[2] = vial_unlock_counter;
|
msg[2] = vial_unlock_counter;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
case vial_lock: {
|
||||||
|
vial_unlocked = 0;
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue