feat: adds pairing key

This commit is contained in:
Florian Didron
2019-11-05 19:02:07 +09:00
committed by Florian Didron
parent 40e9813ba2
commit f3edef8c69
10 changed files with 88 additions and 9 deletions
+11
View File
@@ -57,6 +57,10 @@
# include "encoder.h"
#endif
#ifdef WEBUSB_ENABLE
# include "webusb.h"
#endif
#ifdef AUDIO_ENABLE
# ifndef GOODBYE_SONG
# define GOODBYE_SONG SONG(GOODBYE_SOUND)
@@ -712,6 +716,13 @@ bool process_record_quantum(keyrecord_t *record) {
}
return false;
}
#endif
#ifdef WEBUSB_ENABLE
case WEBUSB_PAIR:
if (record->event.pressed) {
webusb_state.paired = true;
}
return false;
#endif
}