adafruit / Adafruit_SHT4X

Arduino driver for Adafruit SHT4X temperature / humidity breakout
Other
9 stars 10 forks source link

Cannot compile without using serial port #14

Open sunnyguhz opened 1 month ago

sunnyguhz commented 1 month ago

Arduino IDE version (found in Arduino -> About Arduino menu): 2.3.2

List the steps to reproduce the problem below (if possible attach a sketch or copy the sketch code in too): LIST REPRO STEPS BELOW

It Cannot compile without using serial port with STM32.

In file included from c:\Users\Sunnygu\Documents\Arduino\libraries\Adafruit_BusIO\Adafruit_BusIO_Register.cpp:1:
c:\Users\Sunnygu\Documents\Arduino\libraries\Adafruit_BusIO/Adafruit_BusIO_Register.h:74:27: error: 'Serial' was not declared in this scope; did you mean 'Serial2'?
   74 |   void print(Stream *s = &Serial);
      |                           ^~~~~~
      |                           Serial2
c:\Users\Sunnygu\Documents\Arduino\libraries\Adafruit_BusIO/Adafruit_BusIO_Register.h:75:29: error: 'Serial' was not declared in this scope; did you mean 'Serial2'?
   75 |   void println(Stream *s = &Serial);
      |                             ^~~~~~
      |                             Serial2
caternuson commented 1 month ago

The underlying issue is in another library (BusIO): https://github.com/adafruit/Adafruit_BusIO/issues/127