Warning solved (thanks gbirkus)
Issue 18 (thanks Paul) fixed
This commit is contained in:
+1
-1
@@ -227,7 +227,7 @@ void parseTelemHubByte(uint8_t byte)
|
||||
switch ((uint8_t)structPos) {
|
||||
|
||||
case offsetof(FrskyHubData, rpm):
|
||||
frskyHubData.rpm /= (g_model.frsky.blades+2);
|
||||
frskyHubData.rpm *= (uint8_t)60/(g_model.frsky.blades+2);
|
||||
if (frskyHubData.rpm > frskyHubData.maxRpm)
|
||||
frskyHubData.maxRpm = frskyHubData.rpm;
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user