Update Infrared.cpp

Fixed the Infrared::Filter function although the 'prev' variable isn't declared.