Skip to content

Commit

Permalink
battling weird compile fails that work fine on my desktop...
Browse files Browse the repository at this point in the history
  • Loading branch information
DESKTOP-7VKKLTO\ian committed Jan 16, 2025
1 parent be3fde3 commit 2f5f1e7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
6 changes: 4 additions & 2 deletions src/binmode/irtoy-air.c
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ ASCII decimals representing the lengths of pulse and no-pulse in uS (anyone thin
void irtoy_air_service(void){
//while(true) pio_irio_get();
return;

#if 0
//need to be careful about PIO fifo overflow here
if (!tud_cdc_n_connected(CDC_INTF)) {
//rc5_drain_fifo();
Expand All @@ -114,7 +114,7 @@ void irtoy_air_service(void){
return;
}
const char version[4] = {'V', (HARDWARE_VERSION + 0x30), FIRMWARE_VERSION_H, FIRMWARE_VERSION_L};

switch (c) {
case 'V':
case 'v':// Acquire Version
Expand All @@ -125,5 +125,7 @@ void irtoy_air_service(void){

}

#endif

}

3 changes: 1 addition & 2 deletions src/binmode/irtoy-irman.c
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ void irtoy_irman_rx(void) {
}

void irtoy_irman_service(void){

static const char ok[2]="OK";
if (!tud_cdc_n_connected(CDC_INTF)) {
rc5_drain_fifo();
return;
Expand All @@ -104,7 +104,6 @@ void irtoy_irman_service(void){
switch (c) {
case 'r': //IRMAN decoder mode
case 'R':
const char ok[2]="OK";
script_send(ok, 2);
break;
case 'V':
Expand Down

0 comments on commit 2f5f1e7

Please sign in to comment.