HelTecAutomation / CubeCell-Arduino

Heltec CubeCell Series (based on ASR6501, ASR6502 chip) Arduino support.
256 stars 140 forks source link

Error compiling `TX_test` example in Arduino IDE #244

Open agilly opened 2 years ago

agilly commented 2 years ago

Everything is in the title. I select Examples>Basic>serial>TX_test and hit 'Compile'. This gives the following error:

C:\Users\Mbl\Documents\Arduino\hardware\CubeCell\ASR650x-Arduino\libraries\Basics\src\softSerial.cpp: In static member function 'static void softSerial::receiverBegin()':
C:\Users\Mbl\Documents\Arduino\hardware\CubeCell\ASR650x-Arduino\libraries\Basics\src\softSerial.cpp:129:7: error: 'start' does not name a type
  auto start = millis();
       ^
C:\Users\Mbl\Documents\Arduino\hardware\CubeCell\ASR650x-Arduino\libraries\Basics\src\softSerial.cpp:161:22: error: 'start' was not declared in this scope
  } while (millis() - start < SOFTSERIAL_RX_TIMEOUT);

I am using Arduino IDE on Windows. This happens whether I add the board through the Board Manager or using the instructions found at https://github.com/HelTecAutomation/CubeCell-Arduino/blob/master/InstallGuide/windows.md.

Any help appreciated.

SirSundays commented 2 years ago

Hi,

I had the same problem. It worked for me on Linux but not Windows. Was a really quick fix tho. I already created a pull request: https://github.com/HelTecAutomation/CubeCell-Arduino/pull/245

It's just one line that needs to be changed right now. Hope it helps.