prevent cppcheck warnings and remove LED toggling in isr