code cleanup

This commit is contained in:
2025-08-23 21:13:11 -04:00
parent a74808f026
commit c6ac21a15b
6 changed files with 19 additions and 33 deletions
-8
View File
@@ -23,15 +23,7 @@ struct report_desc {
bool listening;
};
struct report_data {
uint8_t dev_addr;
uint8_t instance;
uint8_t report[REPORT_MAX_SIZE];
uint16_t len;
};
#define REPORT_DESC_ALLOC() (struct report_desc *)malloc(sizeof(struct report_desc))
#define REPORT_DATA_ALLOC() (struct report_data *)malloc(sizeof(struct report_data))
extern host_state_t host_state;
extern struct report_desc *descriptors;