minor: fix formatting
This commit is contained in:
parent
d17bc7b3a4
commit
16af15e47d
|
@ -139,7 +139,7 @@ static void load_config(void)
|
|||
if (!manuf_ok) {
|
||||
memset(manuf_key, 0, sizeof(manuf_key));
|
||||
}
|
||||
|
||||
|
||||
memcpy(&config, (uint8_t*)FLASH_CONFIG_ADDR, sizeof(config));
|
||||
uint8_t crc = 0x42; // start with non-zero value to have a checksum work with empty config
|
||||
for (uint16_t i = 0; i < sizeof(config); i++) {
|
||||
|
@ -814,17 +814,17 @@ static void paste_credentials(bool user)
|
|||
pasted_when = board_millis();
|
||||
|
||||
if (user) {
|
||||
send_hid_report(username[user_paste++]);
|
||||
send_hid_char(username[user_paste++]);
|
||||
printf("pasting username and password\r\n");
|
||||
} else {
|
||||
send_hid_report(password[pass_paste++]);
|
||||
send_hid_char(password[pass_paste++]);
|
||||
printf("pasting password\r\n");
|
||||
}
|
||||
}
|
||||
|
||||
void button_task(void)
|
||||
{
|
||||
static uint32_t button1_ms = 0; // when the button has been pressed (in ms)
|
||||
static uint32_t button1_ms = 0; // when the button has been pressed (in ms)
|
||||
static bool button1_ok = false; // if the button is pressed (after debounce)
|
||||
static uint32_t button2_ms = 0; // when the button has been pressed (in ms)
|
||||
static bool button2_ok = false; // if the button is pressed (after debounce)
|
||||
|
@ -934,7 +934,7 @@ void tud_hid_set_report_cb(uint8_t instance, uint8_t report_id, hid_report_type_
|
|||
static uint8_t kbd_leds_last = 0; // last state
|
||||
static uint32_t kbd_leds_when = 0; // when did the state change
|
||||
static uint8_t kbd_leds_count = 0; // how many times it changed (within a certain period)
|
||||
|
||||
|
||||
if (report_type == HID_REPORT_TYPE_OUTPUT) {
|
||||
// Set keyboard LED e.g Capslock, Numlock etc...
|
||||
if (report_id == REPORT_ID_KEYBOARD) {
|
||||
|
|
Loading…
Reference in New Issue