probonopd / irdb

One of the largest crowd-sourced, manufacturer-independent databases of infrared remote control codes on the web, and aspiring to become the most comprehensive and most accurate one
Other
797 stars 147 forks source link

How do I deal with the a negative subdevice? #153

Closed 88fingerslukee closed 2 months ago

88fingerslukee commented 2 months ago

Hi all, I'm trying to convert some IRDB codes to pronto codes using IRPTransmogrifier (from the command line) and I'm getting the following error:

Failed to generate Pronto code, error: Parameter S = -1 is outside of the allowed domain: 0..255

Any idea on how I'm supposed to render a code that has a negative subdevice?

bengtmartensson commented 2 months ago

-1 simply means "this parameter is not present". So in IrpTransmogrifier, just leave out S.

Another name (like null in Java, NULL in C, null_ptr in C++, None in Python, nil in Pascal,...) might have been less prone to misunderstandings...