We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
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
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; }
fixed the problem.
Regards, Andreas Gaßner
The text was updated successfully, but these errors were encountered:
No branches or pull requests
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
The text was updated successfully, but these errors were encountered: