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
+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) {