Edzelf / ESP32-Radio

Internet radio based on ESP32, VS1053 and a TFT screen.
GNU General Public License v3.0
973 stars 229 forks source link

Compiler error #374

Open udope opened 3 years ago

udope commented 3 years ago

I can't compile the sketch. The error is:

Esp32_radio_compiliert:1981:19: error: variable or field 'setdatamode' declared void void setdatamode ( datamode_t newmode )

               ^

Esp32_radio_compiliert:1981:19: error: 'datamode_t' was not declared in this scope

Can you help me, please?

Edzelf commented 3 years ago

I guess your source file is corrupt. "datamode_t" is defined at line 366. The function "setdatamode()" is at line 1979, not at line 1981.

udope commented 3 years ago

First of all: Thankyou for your quick return.

I made a new download, "datamode_t" ist defined in 366 and "setdatamode()" is in line 1979 in the new file, but the result is the same:

Arduino: 1.8.7 (Windows 10), Board: "ESP32 Dev Module, Disabled, Default 4MB with spiffs (1.2MB APP/1.5MB SPIFFS), 160MHz (WiFi/BT), QIO, 40MHz, 4MB (32Mb), 921600, None"

Esp32_radio:1979:19: error: variable or field 'setdatamode' declared void

void setdatamode ( datamode_t newmode )

               ^

Esp32_radio:1979:19: error: 'datamode_t' was not declared in this scope

exit status 1 variable or field 'setdatamode' declared void

Thankyou for your answer!

udope commented 3 years ago

Hi! Solved - compiled on a new, fresh Arduino installtion - worked.