digistump / DigistumpArduino

Files to add Digistump support (Digispark, Pro, DigiX) to Arduino 1.6.X (1.6.5+)
949 stars 379 forks source link

IRhashdecode.ino: IRdecodeHash does not name a type #20

Closed probonopd closed 8 years ago

probonopd commented 8 years ago

Arduino-1.6.8.201601190826

IRhashdecode:24: error: 'IRdecodeHash' does not name a type
 IRdecodeHash My_Hash_Decoder;
 ^
/root/.arduino15/packages/digistump/hardware/avr/1.6.5/libraries/DigisparkIRLib/examples/IRhashdecode/IRhashdecode.ino: In function 'void loop()':
IRhashdecode:37: error: 'My_Hash_Decoder' was not declared in this scope
     My_Hash_Decoder.copyBuf(&My_Decoder);//copy the results to the hash decoder
     ^
exit status 1
'IRdecodeHash' does not name a type
digistump commented 8 years ago

IRdecodeHash only works if you set your protocol to hash in IRLib.h (in the DigisparkIRLib libary folder)

probonopd commented 8 years ago

Thanks @digistump. Would be nice if this was wrapped in a way that throws a more verbose error then. ;-)