I OSv3_decode.pde on lostbyte.net,
i found this code :
uint short_count;
...
short_count++;
...
If (short_count > 20)
and at jeelabs on ookDecode ( part about os v3)
I found
byte flip;
...
++flip;
...
if (32 <= flip)
The code do the same, but what decide if we check about 20 or 32, because 20 is 32 in hexa. But Why not using 0x20. I don't understand when i need to give hex value and when i need to give dec value.
Personally I prefer HEX when doing bit manipulating, masking or when individual bits have a distinct meaning. NB in a HEX value the individual bits are easily identified - each hex digit is a group of 4 bits.
the code dot the same : count the short pulse to determine the preamble.
the amount of short pulse must be the same, this is for decoding same protocol !
The line I compare are about to decode OS V3 (even if second is named OSV2, it decode also OSV3)