Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5

Compile Error Routines SHT2x
#1

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
Reply


Messages In This Thread
Compile Error Routines SHT2x - by GerardvanA - 04-02-2024, 22:31
RE: Compile Error Routines SHT2x - by werk_ag - 05-02-2024, 00:12
RE: Compile Error Routines SHT2x - by GerardvanA - 05-02-2024, 03:06
RE: Compile Error Routines SHT2x - by werk_ag - 05-02-2024, 03:45
RE: Compile Error Routines SHT2x - by werk_ag - 05-02-2024, 04:07
RE: Compile Error Routines SHT2x - by GerardvanA - 05-02-2024, 20:38
RE: Compile Error Routines SHT2x - by werk_ag - 06-02-2024, 04:56
RE: Compile Error Routines SHT2x - by GerardvanA - 06-02-2024, 19:26



Users browsing this thread: 2 Guest(s)