Skip to content

Commit

Permalink
Fix compiling for 0804 boards.
Browse files Browse the repository at this point in the history
  • Loading branch information
tjko committed Mar 25, 2023
1 parent 6ca2901 commit 98aa202
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/display_lcd.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
#include "bb_spi_lcd.h"
#include "fanpico.h"

#if LCD_DISPLAY

static SPILCD lcd;
static uint8_t lcd_found = 0;
Expand Down Expand Up @@ -570,5 +571,5 @@ void lcd_display_message(int rows, const char **text_lines)
}
}


#endif
/* eod :-) */
2 changes: 2 additions & 0 deletions src/display_oled.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
#include "ss_oled.h"
#include "fanpico.h"

#ifdef OLED_DISPLAY

static SSOLED oled;
static uint8_t ucBuffer[(128*128)/8];
Expand Down Expand Up @@ -265,5 +266,6 @@ void oled_display_message(int rows, const char **text_lines)
}
}

#endif

/* eof :-) */
2 changes: 1 addition & 1 deletion src/tacho.c
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ void setup_tacho_input_interrupts()
/* Enable interrupts on Fan Tacho input pins */
gpio_set_irq_enabled_with_callback(FAN1_TACHO_READ_PIN, GPIO_IRQ_EDGE_RISE,
true, &fan_tacho_read_callback);
for (i = 1; i < FAN_COUNT; i++) {
for (int i = 1; i < FAN_COUNT; i++) {
gpio_set_irq_enabled(fan_gpio_tacho_map[i], GPIO_IRQ_EDGE_RISE, true);
}
#endif
Expand Down

0 comments on commit 98aa202

Please sign in to comment.