Implement codegen for more data types - codegen for return_execute stubs removed
This commit is contained in:
parent
d968e6c005
commit
e7d9d6675c
6 changed files with 223 additions and 67 deletions
|
@ -29,21 +29,6 @@ bool get_info_json_chunk(uint16_t offset, uint8_t *data, uint8_t data_len) {
|
|||
|
||||
uint8_t secure_status = 2;
|
||||
|
||||
// TODO: how to set this if "custom" is just an empty stub
|
||||
#ifndef BOOTLOADER_JUMP_SUPPORTED
|
||||
# define BOOTLOADER_JUMP_SUPPORTED
|
||||
#endif
|
||||
|
||||
#ifdef BOOTLOADER_JUMP_SUPPORTED
|
||||
bool request_bootloader_jump(uint8_t *data, uint8_t data_len) {
|
||||
data[0] = secure_status == 2;
|
||||
|
||||
// TODO: post to deferred queue so this request can return?
|
||||
reset_keyboard();
|
||||
return true;
|
||||
}
|
||||
#endif
|
||||
|
||||
#define QSTR2(z) #z
|
||||
#define QSTR(z) QSTR2(z)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue