crankyoldgit / IRremoteESP8266

Infrared remote library for ESP8266/ESP32: send and receive infrared signals with multiple protocols. Based on: https://github.com/shirriff/Arduino-IRremote/
GNU Lesser General Public License v2.1
2.99k stars 833 forks source link

Problem compiling example sketch TurnOnFujitsuAC.ino #601

Closed sorriso93 closed 5 years ago

sorriso93 commented 5 years ago

Hello I compiled and executed with no problem the example IRrecvDumpV2, got the IR codes correctly. If I try to compile in arduino ide the TurnOnFujitsuAC.ino I get an error: ../Arduino/libraries/IRremoteESP8266/src/ir_Fujitsu.cpp:1:1: error: 'ir' does not name a type ir// Copyright 2017 Jonny Graham, David Conran

Version/revison of the library used

2.5.4 library eps8266 board 2.4.2 version

Expected behavior

compiling TurnOnFujitsuAC.ino

Actual behavior

../Arduino/libraries/IRremoteESP8266/src/ir_Fujitsu.cpp:1:1: error: 'ir' does not name a type ir// Copyright 2017 Jonny Graham, David Conran ^

crankyoldgit commented 5 years ago

Hi, I fairly sure you've accidentally corrupted the ir_Fujitsu.cpp file. The first line of which does not start with 'ir'. e.g. https://github.com/markszabo/IRremoteESP8266/blob/master/src/ir_Fujitsu.cpp#L1

As you successfully compiled the IRrecvDumpV2 program, which uses that file as well, you probably corrupted it some time after compiling that and before trying to compile the TurnOnFujitsuAC example code.

Either remove the leading ir from the first line of that file, or go to the Arduino Library Manager and try to convince it to re-load/re-install the library for you from scratch.

sorriso93 commented 5 years ago

Unbelievable... I don't know how it occurred! You were right Many thanks