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

code not compiling #2

Open
gregruthenium opened this issue Dec 30, 2022 · 0 comments
Open

code not compiling #2

gregruthenium opened this issue Dec 30, 2022 · 0 comments

Comments

@gregruthenium
Copy link

Hi.

I managed to edit most of the code to make it work but Im stuck with the following error

Compilation error: 'ERR_DATALENGTH' was not declared in this scope

o {
ret = sps30.GetValues(&val);
if (ret == ERR_DATALENGTH){
if (error_cnt++ > 3) {
return(false); //error during reading sps30 values
}
delay(1000);
}
else if(ret != ERR_OK) {
return(false); //error during reading sps30 values
}
} while (ret != ERR_OK);

massPM2 = val.MassPM2;
massPM10 = val.MassPM10 - val.MassPM2; //PM10 - PM2 to see all particles between 2.5 to 10 micrometer
return true;
}

Can you please help me as this is part of the code you uploaded?

Cheers

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

1 participant