cyborg5 / IRLib2

Library for receiving, decoding, and sending infrared signals using Arduino
GNU General Public License v3.0
384 stars 138 forks source link

Programming Error? #72

Closed ArminJo closed 3 years ago

ArminJo commented 5 years ago

Hi, line 56 in IRLibDecodeBase.cpp reads if(interval>0)LowSpace=min(LowSpace, interval); HiSpace=max (HiSpace, interval); The compiler gets me a warning: ../src/lib/IRLib2/IRLib2/IRLibDecodeBase.cpp:56:8: warning: this 'if' clause does not guard... [-Wmisleading-indentation] Do you mean:

if(interval>0) {
  LowSpace=min(LowSpace, interval); 
  HiSpace=max (HiSpace, interval);
}

or this version which the compiler think you mean

if(interval>0) {
  LowSpace=min(LowSpace, interval);
}
HiSpace=max (HiSpace, interval);

It would be very kind if you could fix the abiguity. Thanks