Skip to content

Commit

Permalink
Fix compile error on Uno
Browse files Browse the repository at this point in the history
  • Loading branch information
PowerBroker2 authored Jan 27, 2022
1 parent cc4392e commit d45dd04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ELMduino.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2629,7 +2629,7 @@ float ELM327::batteryVoltage(void)
if (nb_rx_state == ELM_SUCCESS)
{
nb_query_state = SEND_COMMAND; // Reset the query state machine for next command
return strtof(payload, NULL);
return (float)strtod(payload, NULL);
}
else if (nb_rx_state != ELM_GETTING_MSG)
nb_query_state = SEND_COMMAND; // Error or timeout, so reset the query state machine for next command
Expand Down

0 comments on commit d45dd04

Please sign in to comment.