You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I believe a shift sign has been inverted rendering the conversion incorrect.
static unsigned int from_fpe2(uint8_t data[32])
{
unsigned int ans = 0;
// Data type for fan calls - fpe2
// This is assumend to mean floating point, with 2 exponent bits
// http://stackoverflow.com/questions/22160746/fpe2-and-sp78-data-types
ans += data[0] << 6;
ans += data[1] << 2;
return ans;
}
Should be:
ans += data[1] >> 2;
(+ typo "assumend" -> "assumed")
Can do a tiny PR if it helps.
The text was updated successfully, but these errors were encountered:
I believe a shift sign has been inverted rendering the conversion incorrect.
Should be:
(+ typo "assumend" -> "assumed")
Can do a tiny PR if it helps.
The text was updated successfully, but these errors were encountered: