Compilation fix for companion

This commit is contained in:
romolo.manfredini@gmail.com
2012-03-22 02:31:54 +00:00
parent dfdb4bbade
commit 21571b0050
3 changed files with 5 additions and 2 deletions
+2 -1
View File
@@ -32,7 +32,7 @@
*/
#include "open9x.h"
#ifndef SIMU
inline void board_init()
{
// Set up I/O port data directions and initial states
@@ -67,6 +67,7 @@ inline void board_init()
TCCR0B = (1<<WGM02) | (0b011 << CS00);
TCCR0A = (0b01<<WGM00);
}
#endif
FORCEINLINE uint8_t keyDown()
{
+2
View File
@@ -33,6 +33,7 @@
#include "open9x.h"
#ifndef SIMU
inline void board_init()
{
// Set up I/O port data directions and initial states
@@ -65,6 +66,7 @@ inline void board_init()
TIMSK |= (1<<OCIE0) | (1<<TOIE0); // Enable Output-Compare and Overflow interrrupts
/********************************/
}
#endif
FORCEINLINE uint8_t keyDown()
{
+1 -1
View File
@@ -258,7 +258,7 @@ void per10ms()
#if defined(AUDIO)
uint8_t warble = 0;
#endif
int8_t verticalSpeed = limit((int16_t)-100, frskyHubData.varioSpeed/10, (int16_t)+100);
int8_t verticalSpeed = limit((int16_t)-100, (int16_t)(frskyHubData.varioSpeed/10), (int16_t)+100);
uint16_t interval;
if (verticalSpeed == 0) {