Skip to content

Commit

Permalink
fix number type error in esc pannel
Browse files Browse the repository at this point in the history
  • Loading branch information
Huibean authored and tridge committed Sep 11, 2024
1 parent e30f72a commit 5ecc5a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dronecan_gui_tool/panels/esc_panel.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 5ecc5a2

Please sign in to comment.