summaryrefslogtreecommitdiff
path: root/tmk_core/common/webusb.h
diff options
context:
space:
mode:
authorFlorian Didron <fd@librem.one>2019-12-02 18:58:07 +0900
committerFlorian Didron <fdidron@users.noreply.github.com>2019-12-06 08:20:51 +0900
commit54d6f5d4c50af2ea09a103825040e739d7acd58b (patch)
tree6c534c04dad4452c8833d4b5df7d0dea5fe90d0e /tmk_core/common/webusb.h
parent3a14d8874fb53d3d705c4d4515942db3b584399c (diff)
feat: add fw version webusb cmd
Diffstat (limited to 'tmk_core/common/webusb.h')
-rw-r--r--tmk_core/common/webusb.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/tmk_core/common/webusb.h b/tmk_core/common/webusb.h
index 873ecb7ce2..7696db677d 100644
--- a/tmk_core/common/webusb.h
+++ b/tmk_core/common/webusb.h
@@ -3,6 +3,9 @@
#include <stdint.h>
#include <stdbool.h>
+#ifndef FIRMWARE_VERSION
+#define FIRMWARE_VERSION u8"default"
+#endif
#define WEBUSB_STOP_BIT -2
#define WEBUSB_BLINK_STEPS 512
#define WEBUSB_BLINK_END WEBUSB_BLINK_STEPS * 60
@@ -27,7 +30,7 @@ enum Webusb_Status_Code {
enum Webusb_Command_Code {
WEBUSB_CMD_PAIR,
- WEBUSB_GET_LANDING_PAGE
+ WEBUSB_GET_FW_VERSION
};
enum Webusb_Event_Code {