Skip to content

Commit

Permalink
Fix typecast
Browse files Browse the repository at this point in the history
  • Loading branch information
PowerBroker2 authored Jan 2, 2024
1 parent c2df64d commit d95dc19
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ELMduino.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -475,7 +475,7 @@ double ELM327::conditionResponse(const uint8_t &numExpectedBytes, const float &s
}
else
{
return ((float)(response >> (4 * payCharDiff)) * scaleFactor) + bias;
return ((double)(response >> (4 * payCharDiff)) * scaleFactor) + bias;
}

}
Expand Down Expand Up @@ -2867,4 +2867,4 @@ bool ELM327::isPidSupported(uint8_t pid)
return ((response >> (32 - pid)) & 0x1);
}
return false;
}
}

0 comments on commit d95dc19

Please sign in to comment.