From 95b77c1524d34760ddb6282cadd2b1417a4061d0 Mon Sep 17 00:00:00 2001 From: "romolo.manfredini@gmail.com" Date: Fri, 30 Mar 2012 18:28:51 +0000 Subject: [PATCH] Better fix for compilation issues in companion --- src/board_gruvin9x.cpp | 6 ------ src/simpgmspace.h | 1 + 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/src/board_gruvin9x.cpp b/src/board_gruvin9x.cpp index 278088ba7..810b756ff 100644 --- a/src/board_gruvin9x.cpp +++ b/src/board_gruvin9x.cpp @@ -76,12 +76,8 @@ inline void board_init() uint8_t check_power() { #ifndef REV0 -#ifndef SIMU if ((PING & 0b00000010) && (~PINL & 0b01000000)) return 1; -#else - return 0; -#endif #endif return 0; } @@ -89,9 +85,7 @@ uint8_t check_power() void soft_power_off() { #ifndef REV0 -#ifndef SIMU PORTL = 0x7f; -#endif #endif } diff --git a/src/simpgmspace.h b/src/simpgmspace.h index f6e2936f1..bc7fcbcc5 100644 --- a/src/simpgmspace.h +++ b/src/simpgmspace.h @@ -138,6 +138,7 @@ extern volatile uint32_t Spi_complete; #define PORTF dummyport #define PORTG dummyport #define PORTH porth +#define PORTL dummyport #define DDRA dummyport #define DDRB dummyport #define DDRC dummyport