aboutsummaryrefslogtreecommitdiff
path: root/altimeter.c
diff options
context:
space:
mode:
Diffstat (limited to 'altimeter.c')
-rw-r--r--altimeter.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/altimeter.c b/altimeter.c
index db45eb7..db18659 100644
--- a/altimeter.c
+++ b/altimeter.c
@@ -49,12 +49,14 @@ ISR(TIMER1_COMPA_vect)
int main(void)
{
+ struct display display;
struct barometer barometer;
struct timer timer;
/* Initialise display before enabling interrupts */
- display_init();
- display_clear();
+ get_system_display(&display);
+ display.init();
+ display.clear();
/* get descriptors for system default peripherals */
get_system_barometer(&barometer);