Corrected LED filter frequency
Added safety range check to sample number field, since we don't actually want to crash when an invalid sample number is processed