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

Tools::GetChipRevision() 'EFUSE_RD_CHIP_VER_RESERVE_S' was not declared in this scope #15

Open
gsandreas opened this issue Aug 28, 2020 · 0 comments

Comments

@gsandreas
Copy link

Hi,

I compiled today the version V0.17.1 with arduino and encoundered obove mentioned problem.

It seems, that the old code in Tools.cpp does not work any more.

`String Tools::GetChipRevision() {
String result;

byte revision = (REG_READ(EFUSE_BLK0_RDATA3_REG) >> EFUSE_RD_CHIP_VER_RESERVE_S) && EFUSE_RD_CHIP_VER_RESERVE_V;
switch (revision) {
case 0:
result = "0 (2016.09)";
break;
case 1:
result = "1 (2017.02)";
break;
default:
result = String(revision) + "(unknown)";
break;
}

return result;
}`

replacing the string behind byte revision to

`String Tools::GetChipRevision() {
String result;

byte revision = (REG_READ(EFUSE_BLK0_RDATA3_REG) >> (EFUSE_CHIP_VER_REV1_S)&&EFUSE_CHIP_VER_REV1_V) ;
switch (revision) {
case 0:
result = "0 (2016.09)";
break;
case 1:
result = "1 (2017.02)";
break;
default:
result = String(revision) + "(unknown)";
break;
}

return result;
}`

fixed the problem.

Regards,
Andreas Gaßner

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