kounch / homebridge_mitsubishi_ir_arduino

Arduino Sketch for Mitsubihishi VAC IR Remote plugin for homebridge
3 stars 0 forks source link

Error compiling #3

Open noppie opened 4 years ago

noppie commented 4 years ago

While compiling in Arduino I get the next error:

/UsersDocuments/Arduino/Homebrigde Mitsubishi/homebridge_mitsubishi_ir_arduino/homebridge_mitsubishi_ir_arduino.ino: In function 'void setTemp(int, int, int, int, bool)': /UsersDocuments/Arduino/Homebrigde Mitsubishi/homebridge_mitsubishi_ir_arduino/homebridge_mitsubishi_ir_arduino.ino:392:55: warning: invalid conversion from 'int' to 'HvacMode' [-fpermissive] irsend.sendHvacMitsubishi(mode, temp, fan, vane, off); ^ In file included from /UsersDocuments/Arduino/Homebrigde Mitsubishi/homebridge_mitsubishi_ir_arduino/homebridge_mitsubishi_ir_arduino.ino:57:0: sketch/IRremote2.h:164:10: note: initializing argument 1 of 'void IRsend::sendHvacMitsubishi(HvacMode, int, HvacFanMode, HvacVanneMode, int)' void sendHvacMitsubishi( ^~~~~~ /UsersDocuments/Arduino/Homebrigde Mitsubishi/homebridge_mitsubishi_ir_arduino/homebridge_mitsubishi_ir_arduino.ino:392:55: warning: invalid conversion from 'int' to 'HvacFanMode' [-fpermissive] irsend.sendHvacMitsubishi(mode, temp, fan, vane, off); ^ In file included from /UsersDocuments/Arduino/Homebrigde Mitsubishi/homebridge_mitsubishi_ir_arduino/homebridge_mitsubishi_ir_arduino.ino:57:0: sketch/IRremote2.h:164:10: note: initializing argument 3 of 'void IRsend::sendHvacMitsubishi(HvacMode, int, HvacFanMode, HvacVanneMode, int)' void sendHvacMitsubishi( ^~~~~~ /UsersDocuments/Arduino/Homebrigde Mitsubishi/homebridge_mitsubishi_ir_arduino/homebridge_mitsubishi_ir_arduino.ino:392:55: warning: invalid conversion from 'int' to 'HvacVanneMode' [-fpermissive] irsend.sendHvacMitsubishi(mode, temp, fan, vane, off); ^ In file included from /UsersDocuments/Arduino/Homebrigde Mitsubishi/homebridge_mitsubishi_ir_arduino/homebridge_mitsubishi_ir_arduino.ino:57:0: sketch/IRremote2.h:164:10: note: initializing argument 4 of 'void IRsend::sendHvacMitsubishi(HvacMode, int, HvacFanMode, HvacVanneMode, int)' void sendHvacMitsubishi( ^~~~~~ In function 'parseCommand.constprop', inlined from 'processWifi' at /UsersDocuments/Arduino/Homebrigde Mitsubishi/homebridge_mitsubishi_ir_arduino/homebridge_mitsubishi_ir_arduino.ino:185:17, inlined from 'loop' at /UsersDocuments/Arduino/Homebrigde Mitsubishi/homebridge_mitsubishi_ir_arduino/homebridge_mitsubishi_ir_arduino.ino:156:14, inlined from 'main' at /private/var/folders/tt/y9m9fkt16cl7dypwqbf78ckc0000gn/T/AppTranslocation/7C0AAA1D-D668-4890-B912-52AC8866FC2F/d/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/main.cpp:46:7: /UsersDocuments/Arduino/Homebrigde Mitsubishi/homebridge_mitsubishi_ir_arduino/homebridge_mitsubishi_ir_arduino.ino:276:18: warning: '__builtin_strcpy' writing 26 bytes into a region of size 20 overflows the destination [-Wstringop-overflow=] sprintf(resultado, "KO,Could not sample data\n"); ^ /UsersDocuments/Arduino/Homebrigde Mitsubishi/homebridge_mitsubishi_ir_arduino/homebridge_mitsubishi_ir_arduino.ino:320:12: warning: '__builtin_strcpy' writing 26 bytes into a region of size 20 overflows the destination [-Wstringop-overflow=] sprintf(resultado, "KO,Not enough parameters\n");

kounch commented 4 years ago

Where’s the error? I only see warnings

noppie commented 4 years ago

Sorry, they are warnings

You are right. But can I deny them?

kounch commented 4 years ago

Perhaps some of them can be fixed, but not all. I will look into it when I’m back home (currently on holidays with no computer)

I have been ignoring them in the past and it’s been running fine for me.

noppie commented 4 years ago

That would be very nice! Thank you in advance.
Have a nice holiday.

Kind regards Norbert

Verstuurd vanaf mijn 

Op 22 aug. 2020 om 23:26 heeft kounch notifications@github.com het volgende geschreven:

 Perhaps some of them can be fixed, but not all. I will look into it when I’m back home (currently on holidays with no computer)

I have been ignoring them in the past and it’s been running fine for me.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.