AlessandroAU / Chorus32-ESP32LapTimer

This is an ESP32 port of the popular Chorus RF Laptimer
GNU General Public License v3.0
85 stars 33 forks source link

Force old version of espressif32 #130

Closed Smeat closed 2 years ago

Smeat commented 2 years ago

The new version changes a bunch of things. Version 3.5.0 should work fine for now.

This should fix #127. @Z1gun can you confirm this fixes your issue?

Z1gun commented 2 years ago

Kevin,

Partially yes, problem has gone.

Environment      Status    Duration
---------------  --------  ------------
BOARD_DEFAULT    FAILED    00:01:12.550
BOARD_TTGO_LORA  FAILED    00:00:17.002
BOARD_OLD        SUCCESS   00:00:30.994
BOARD_WROOM      SUCCESS   00:00:30.816
Problem in Lora.cpp
'LoRa' was not declared in this scope
Smeat commented 2 years ago

50% there :)

Can you post the complete error message? I am a little bit confused since I never merged LoRa support.

Just to clarify: To test this change use the normal repository and edit line 12 in platformio.ini to

platform = espressif32 @ ~3.5.0
Z1gun commented 2 years ago

Yes, I've just change this

platform = espressif32 @ ~3.5.0

This is a full compile error message about 'LoRa'

Archiving .pio\build\BOARD_TTGO_LORA\libd85\libSPI.a
src/Lora.cpp: In function 'void lora_send()':
src/Lora.cpp:49:12: error: 'LoRa' was not declared in this scope
   status = LoRa.beginPacket();
            ^
src/Lora.cpp: In function 'void lora_init(void*)':
src/Lora.cpp:89:3: error: 'LoRa' was not declared in this scope
   LoRa.setSPI(lora_spi);
   ^
src/Lora.cpp: In function 'void lora_update(void*)':
src/Lora.cpp:105:19: error: 'LoRa' was not declared in this scope
  int packetSize = LoRa.parsePacket();
                   ^
src/Lora.cpp: At global scope:
src/Lora.cpp:67:13: warning: 'void lora_send_task(void*)' defined but not used [-Wunused-function]
 static void lora_send_task(void* arg) {
             ^
Compiling .pio\build\BOARD_TTGO_LORA\lib525\WiFi\ETH.cpp.o
*** [.pio\build\BOARD_TTGO_LORA\src\Lora.cpp.o] Error 1

But maybe this is a not problem, because in this case 3 from 4 was successful

Environment      Status    Duration
---------------  --------  ------------
BOARD_DEFAULT    SUCCESS   00:00:19.357
BOARD_TTGO_LORA  FAILED    00:00:04.479
BOARD_OLD        SUCCESS   00:00:04.549
BOARD_WROOM      SUCCESS   00:00:04.541
Smeat commented 2 years ago

It seems you have traces of my fork in you temporary files. If you delete the .pio folder, the errors should be gone