Set minimum package length to 16 (was 32) see pimatic/rfcontroljs#101
This commit is contained in:
parent
166740484a
commit
da2f91caec
|
@ -171,9 +171,9 @@ void recording(unsigned int duration, int package) {
|
|||
data_start[package + 1] = data_end[package] + 1;
|
||||
data_end[package + 1] = data_start[package + 1];
|
||||
|
||||
//Received more than 32 timings and start and end are the same footer then enter next state
|
||||
//less than 32 timings -> restart the package.
|
||||
if (data_end[package] - data_start[package] >= 32)
|
||||
//Received more than 16 timings and start and end are the same footer then enter next state
|
||||
//less than 16 timings -> restart the package.
|
||||
if (data_end[package] - data_start[package] >= 16)
|
||||
{
|
||||
if (state == STATUS_RECORDING_3) {
|
||||
state = STATUS_RECORDING_END;
|
||||
|
|
Loading…
Reference in New Issue