From 5ecc5a239e46026e20038070fac27f90fbcf80e3 Mon Sep 17 00:00:00 2001 From: Huibean Date: Wed, 11 Sep 2024 17:37:30 +0800 Subject: [PATCH] fix number type error in esc pannel --- dronecan_gui_tool/panels/esc_panel.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dronecan_gui_tool/panels/esc_panel.py b/dronecan_gui_tool/panels/esc_panel.py index ef5cdd6..4ba471e 100644 --- a/dronecan_gui_tool/panels/esc_panel.py +++ b/dronecan_gui_tool/panels/esc_panel.py @@ -94,7 +94,7 @@ def __init__(self, parent, node): self._bcast_interval.setSingleStep(0.1) self._bcast_interval.setValue(self.DEFAULT_INTERVAL) self._bcast_interval.valueChanged.connect( - lambda: self._bcast_timer.setInterval(self._bcast_interval.value() * 1e3)) + lambda: self._bcast_timer.setInterval(int(self._bcast_interval.value() * 1e3))) self._stop_all = make_icon_button('hand-stop-o', 'Zero all channels', self, text='Stop All', on_clicked=self._do_stop_all)