def idle_task(self):
        '''called on idle'''
        if self.threat_timeout_timer.trigger():
            self.check_threat_timeout()

        if self.threat_detection_timer.trigger():
            self.perform_threat_detection()
def idle_task ( self ) : if self . threat_timeout_timer . trigger ( ) : self . check_threat_timeout ( ) if self . threat_detection_timer . trigger ( ) : self . perform_threat_detection ( )
called on idle