add reboot command for better testing
This commit is contained in:
parent
241f58657b
commit
6cd3873b37
@ -734,6 +734,11 @@ uint8_t ctaphid_custom_command(int len, CTAP_RESPONSE * ctap_resp, CTAPHID_WRITE
|
|||||||
ctaphid_write(wb, NULL, 0);
|
ctaphid_write(wb, NULL, 0);
|
||||||
return 1;
|
return 1;
|
||||||
#endif
|
#endif
|
||||||
|
#if defined(SOLO)
|
||||||
|
case CTAPHID_REBOOT:
|
||||||
|
device_reboot();
|
||||||
|
return 1;
|
||||||
|
#endif
|
||||||
|
|
||||||
#if !defined(IS_BOOTLOADER)
|
#if !defined(IS_BOOTLOADER)
|
||||||
case CTAPHID_GETRNG:
|
case CTAPHID_GETRNG:
|
||||||
|
@ -27,6 +27,7 @@
|
|||||||
#define CTAPHID_BOOT (TYPE_INIT | 0x50)
|
#define CTAPHID_BOOT (TYPE_INIT | 0x50)
|
||||||
#define CTAPHID_ENTERBOOT (TYPE_INIT | 0x51)
|
#define CTAPHID_ENTERBOOT (TYPE_INIT | 0x51)
|
||||||
#define CTAPHID_ENTERSTBOOT (TYPE_INIT | 0x52)
|
#define CTAPHID_ENTERSTBOOT (TYPE_INIT | 0x52)
|
||||||
|
#define CTAPHID_REBOOT (TYPE_INIT | 0x53)
|
||||||
#define CTAPHID_GETRNG (TYPE_INIT | 0x60)
|
#define CTAPHID_GETRNG (TYPE_INIT | 0x60)
|
||||||
#define CTAPHID_GETVERSION (TYPE_INIT | 0x61)
|
#define CTAPHID_GETVERSION (TYPE_INIT | 0x61)
|
||||||
#define CTAPHID_LOADKEY (TYPE_INIT | 0x62)
|
#define CTAPHID_LOADKEY (TYPE_INIT | 0x62)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user