I’m not sure where the best place to post this is so if it should be posted in a different location let me know.
I have two computers and Windows 10 laptop and my Linux desktop, most of my development with Arduino has been on the Windows machine and I’m trying to move it to the linux box. Code that I can compile and upload to my Redboard from my Windows laptop fails on the linux box with the error listed below. Nothing has changed other than the OS.
The error is the first line listed void printDriverError( CCS811Core::status errorCode )
void printDriverError( CCS811Core::status errorCode )
{
switch ( errorCode )
{
case CCS811Core::SENSOR_SUCCESS:
Serial.print("SUCCESS");
break;
case CCS811Core::SENSOR_ID_ERROR:
Serial.print("ID_ERROR");
break;
case CCS811Core::SENSOR_I2C_ERROR:
Serial.print("I2C_ERROR");
break;
case CCS811Core::SENSOR_INTERNAL_ERROR:
Serial.print("INTERNAL_ERROR");
break;
case CCS811Core::SENSOR_GENERIC_ERROR:
Serial.print("GENERIC_ERROR");
break;
default:
Serial.print("Unspecified error.");
}
}
Error Code
BeeHive_Master1:367:36: error: variable or field 'printDriverError' declared void
void printDriverError( CCS811Core::status errorCode )
^~~~~~
BeeHive_Master1:367:36: error: 'status' is not a member of 'CCS811Core'
BeeHive_Master1:367:36: error: variable or field 'printDriverError' declared void
void printDriverError( CCS811Core::status errorCode )
^~~~~~
BeeHive_Master1:367:36: error: 'status' is not a member of 'CCS811Core'
exit status 1
variable or field 'printDriverError' declared void