Set minimum package length to 16 (was 32) see pimatic/rfcontroljs#101

This commit is contained in:
Oliver Schneider 2016-06-18 14:27:51 +02:00
parent 166740484a
commit da2f91caec
1 changed files with 3 additions and 3 deletions

View File

@ -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;