04-02-2024, 22:31
I've been given 3 TX and 1 RX board, and am trying to set them up for my first WX station. I've got the RX mainly working, but am getting a compile error for the TX (TH_SENSOR0 is defined as 0)
==================================================
Routines:10:22: error: expected primary-expression before '.' token
T_ExtS0 = SHT2x.getTemperature() * 100.0;
^
Routines:11:22: error: expected primary-expression before '.' token
H_ExtS0 = SHT2x.getHumidity() * 100.0;
^
exit status 1
expected primary-expression before '.' token
==================================================
With the TH_SENSOR0 defined to 1 (and also 9 (no sensor)) the code compiles ok.
With it set to 2 I get other errors.
Since I'm trying to re-set up the gear I've been given without much data on it, I'm not sure what sensors I've got, but I would assume the code should compile ok for all options.
Any ideas?
Thanks
==================================================
Routines:10:22: error: expected primary-expression before '.' token
T_ExtS0 = SHT2x.getTemperature() * 100.0;
^
Routines:11:22: error: expected primary-expression before '.' token
H_ExtS0 = SHT2x.getHumidity() * 100.0;
^
exit status 1
expected primary-expression before '.' token
==================================================
With the TH_SENSOR0 defined to 1 (and also 9 (no sensor)) the code compiles ok.
With it set to 2 I get other errors.
Since I'm trying to re-set up the gear I've been given without much data on it, I'm not sure what sensors I've got, but I would assume the code should compile ok for all options.
Any ideas?
Thanks

