Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error compilling #109

Closed
AekPu opened this issue Jan 26, 2022 · 6 comments
Closed

Error compilling #109

AekPu opened this issue Jan 26, 2022 · 6 comments
Assignees
Labels
bug Something isn't working

Comments

@AekPu
Copy link

AekPu commented Jan 26, 2022

Arduino: 1.8.19 (Windows 10), Board: "Arduino Uno"

C:\Users\Aekkarad\Documents\Arduino\libraries\ELMDuino-3.0.0\src\ELMduino.cpp: In member function 'float ELM327::batteryVoltage()':

C:\Users\Aekkarad\Documents\Arduino\libraries\ELMDuino-3.0.0\src\ELMduino.cpp:2632:11: error: 'strtof' was not declared in this scope

return strtof(payload, NULL);

       ^~~~~~

C:\Users\Aekkarad\Documents\Arduino\libraries\ELMDuino-3.0.0\src\ELMduino.cpp:2632:11: note: suggested alternative: 'strtok'

return strtof(payload, NULL);

       ^~~~~~

       strtok

exit status 1

Error compiling for board Arduino Uno.

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

@AekPu AekPu added the bug Something isn't working label Jan 26, 2022
@PowerBroker2
Copy link
Owner

What happens if you replace all strtof() calls to strtod()? Does the error go away?

@AekPu
Copy link
Author

AekPu commented Jan 26, 2022 via email

@PowerBroker2
Copy link
Owner

No, if you go into ELMduino.cpp and replace all instances of strtof to (float)strtod, do you still get a compile time error?

@AekPu
Copy link
Author

AekPu commented Jan 27, 2022 via email

@PowerBroker2
Copy link
Owner

Fixed in 3.0.1

@AekPu
Copy link
Author

AekPu commented Jan 27, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants