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

Unable to compile with "MeAuriga.h" #74

Open
nbourre opened this issue Sep 26, 2022 · 3 comments
Open

Unable to compile with "MeAuriga.h" #74

nbourre opened this issue Sep 26, 2022 · 3 comments

Comments

@nbourre
Copy link

nbourre commented Sep 26, 2022

Using Arduino IDE 2.0, I'm trying to compile code using "MeAuriga.h" library, but I always get the error :

my_user_path\Documents\Arduino\libraries\Makeblock-Libraries-3.26\src\MeSuperVariable.cpp: In member function 'void* MeSuperVariable::set_variable(char*, uint8_t, void*, uint8_t)':
my_user_path\Documents\Arduino\libraries\Makeblock-Libraries-3.26\src\MeSuperVariable.cpp:241:14: error: cannot convert 'bool' to 'void*' in return

Here's a basic example which does not compile.

#include <MeAuriga.h>

void setup() {
  Serial.begin(9600);
}

void loop() {
  Serial.println("test");
  delay(1000);
}
@nbourre
Copy link
Author

nbourre commented Sep 26, 2022

Please check this PR : #60

@DYy2021
Copy link

DYy2021 commented Sep 27, 2022

Your problem is caused by the return value of the 'set_variable' function in the MeSuperVariable.cpp file in the Makeblock-Libraries-3.26 library, there are now two solutions, 1. Libraries latest library is no MeSuperVariable.cpp file, so this problem is not a problem in the latest library, the new library address is https://github.com/Makeblock-official/Makeblock-Libraries.
2. You need to change the 'set_variable' function in the MeSuperVariable.cpp file from 'return false;' to 'return;' in line 241 to save it without error. See the modified look in the image below.
image

@nbourre
Copy link
Author

nbourre commented Sep 27, 2022

I have already fixed the problem by myself, but the latest release contains the bug.

Also, there are more than a return with a Boolean in the function.

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