From 46f4f3271d71d1650524c8b1c5da391424c1aecd Mon Sep 17 00:00:00 2001 From: Comma Device Date: Mon, 22 Jun 2020 16:45:39 -0700 Subject: [PATCH] fix linter old-commit-hash: d4e87853550db41f36bedeeb092d1b2de2deb7b4 --- selfdrive/debug/cycle_alerts.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/selfdrive/debug/cycle_alerts.py b/selfdrive/debug/cycle_alerts.py index bd48e6c6d8..63b7d758c5 100755 --- a/selfdrive/debug/cycle_alerts.py +++ b/selfdrive/debug/cycle_alerts.py @@ -1,10 +1,12 @@ #!/usr/bin/env python3 +# flake8: noqa +# pylint: skip-file +# type: ignore + import argparse import time -import zmq import cereal.messaging as messaging -from cereal.services import service_list from selfdrive.controls.lib.events import EVENTS, Alert def now_millis(): return time.time() * 1000 @@ -41,7 +43,7 @@ def cycle_alerts(duration_millis, alerts=None): #dat.controlsState.alertStatus = alert.alert_status dat.controlsState.alertSound = alert.audible_alert controls_state.send(dat.to_bytes()) - + time.sleep(0.01) if __name__ == '__main__':