cannot use array , because of pointer
https://www.reddit.com/r/C_Programming/comments/q1it3p/help_why_cant_you_assign_an_array_to_another_array/
This commit is contained in:
parent
4ecb478354
commit
270806e5fa
3 changed files with 13 additions and 33 deletions
|
@ -62,33 +62,19 @@ Sensor_Index SensorIndex[] {
|
|||
{},
|
||||
}},
|
||||
|
||||
// 1 - internal ADC
|
||||
{ SENSOR_01_NAME, {
|
||||
SENSOR_READING_RAW,
|
||||
}},
|
||||
// 1 - internal ADC
|
||||
{ SENSOR_01_NAME,
|
||||
{
|
||||
SENSOR_READING_TEMP
|
||||
},
|
||||
},
|
||||
|
||||
// 2 - BME280
|
||||
{ "BME280", {
|
||||
SENSOR_READING_TEMP,
|
||||
SENSOR_READING_HUMIDITY,
|
||||
SENSOR_READING_PRESSURE,
|
||||
}},
|
||||
|
||||
// 3
|
||||
{ "Chirp", {
|
||||
SENSOR_READING_MOISTURE,
|
||||
SENSOR_READING_TEMP,
|
||||
SENSOR_READING_RAW,
|
||||
}},
|
||||
|
||||
// 4
|
||||
{ "ADS1115", {
|
||||
SENSOR_READING_RAW,
|
||||
SENSOR_READING_RAW,
|
||||
SENSOR_READING_RAW,
|
||||
SENSOR_READING_RAW
|
||||
}},
|
||||
|
||||
// 5
|
||||
|
||||
{ SENSOR_02_NAME,
|
||||
{
|
||||
SENSOR_READING_TEMP,
|
||||
SENSOR_READING_HUMIDITY,
|
||||
SENSOR_READING_PRESSURE
|
||||
},
|
||||
}
|
||||
};
|
||||
|
|
|
@ -30,4 +30,3 @@
|
|||
#define SENSOR_01_NAME "ADC builtin"
|
||||
#define ADC_BUILTIN_MAX 0
|
||||
|
||||
const byte SENSOR_01_READINGS[] = { SENSOR_READING_RAW };
|
||||
|
|
|
@ -34,11 +34,6 @@
|
|||
#define SENSOR_02_NAME "BME280"
|
||||
#define BME280_MAX 2
|
||||
|
||||
const byte SENSOR_02_READINGS[] = {
|
||||
SENSOR_READING_TEMP,
|
||||
SENSOR_READING_HUMIDITY,
|
||||
SENSOR_READING_PRESSURE };
|
||||
|
||||
|
||||
Adafruit_BME280 BME280[BME280_MAX];
|
||||
|
||||
|
|
Loading…
Reference in a new issue