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

'strupr' was not declared in this scope #10

Open
AngelRionCervi opened this issue Jul 20, 2023 · 4 comments
Open

'strupr' was not declared in this scope #10

AngelRionCervi opened this issue Jul 20, 2023 · 4 comments

Comments

@AngelRionCervi
Copy link

AngelRionCervi commented Jul 20, 2023

strupr doesn't seem to be supported on Arduino R4 WIFI, I get his error whenever trying to use the library.

@AngelRionCervi
Copy link
Author

AngelRionCervi commented Jul 20, 2023

Closed and reopened with relevant informations

@jwilleke
Copy link

Me Too!

@jwilleke
Copy link

jwilleke commented Dec 29, 2023

This seems to get around the issue.

Added at after includes of DFRobot_PH.cpp
`
/**

  • The strupr only shift to uppercase
  • This adds a 'hack' function to overcome the issue.
  • However, this should probably be fixed in a more basic maner.
    */
    void strupr(char *str)
    {
    while (*str)
    {
    *str = toupper((unsigned char)*str);
    str++;
    }
    }
    `

I updated this at: https://github.com/jwilleke/Analog-pH-meter

@AngelRionCervi
Copy link
Author

I no longer have the problem since I used another library, but thanks for the update on the issue ! I will check it out

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants