I have some code in class. ...
static const char* const i2c_bus_path[] {
"/dev/i2c-0",
"/dev/i2c-1",
"/dev/i2c-2",
"/dev/i2c-3",
"/dev/i2c-4",
"/dev/i2c-5",
"/dev/i2c-6",
};
While compile this code, i have ERROR:
error: two or more data types in declaration of ‘i2c_bus_path’|
I use: Code::Blocks 16.01 for debuging my project. OS: - Ubuntu 18.04. GCC: gcc (Ubuntu/Linaro 7.4.0-1ubuntu1~18.04.1) 7.4.0
Can someone help undestand how to solve this problem?
Aucun commentaire:
Enregistrer un commentaire