code format

This commit is contained in:
Martin Brodbeck 2024-02-26 12:17:18 +01:00
parent 7a5d0b97e7
commit e420930ce6

View file

@ -22,7 +22,7 @@ extern const uint LEFT_PADDLE_PIN = 14;
extern const uint RIGHT_PADDLE_PIN = 15;
extern const uint BUZZER_PIN = 18;
extern const uint CW_OUT_PIN = 17;
//extern const uint AUDIO_OUT_PIN = 16;
// extern const uint AUDIO_OUT_PIN = 16;
extern const uint ADC_PIN = 26;
// Stuff for communicating between cores
@ -113,7 +113,8 @@ static void usbSend(uint8_t itf, uint8_t buf[], uint32_t count)
tud_cdc_n_write_flush(itf);
}
static void usbSend(uint8_t itf, uint8_t value) {
static void usbSend(uint8_t itf, uint8_t value)
{
tud_cdc_n_write_char(itf, value);
tud_cdc_n_write_flush(itf);
}
@ -125,7 +126,7 @@ void cdc_task()
if (tud_cdc_n_available(USB_IF)) {
uint8_t buf[64];
//printf("AHA!!! %d\n", (int)tud_cdc_n_available(USB_IF));
// printf("AHA!!! %d\n", (int)tud_cdc_n_available(USB_IF));
uint32_t count = tud_cdc_n_read(USB_IF, buf, sizeof(buf));
if (count > 0) {
@ -221,13 +222,12 @@ int main()
lastWpm = currentWpm;
}
//busy_wait_ms(5000);
// busy_wait_ms(5000);
if (!used) {
//KeyerQueueData keyerQueueData {KeyerQueueCommand::SendMessage, 0, settings.mode, "cq cq de dg2smb dg2smb pse k"};
//queue_add_blocking(&keyerQueue, &keyerQueueData);
// KeyerQueueData keyerQueueData {KeyerQueueCommand::SendMessage, 0, settings.mode, "cq cq de dg2smb dg2smb
// pse k"}; queue_add_blocking(&keyerQueue, &keyerQueueData);
used = true;
}
}
return 0;