summaryrefslogtreecommitdiff
path: root/gr-qtgui/python/qtgui/toggleswitch.py
diff options
context:
space:
mode:
Diffstat (limited to 'gr-qtgui/python/qtgui/toggleswitch.py')
-rw-r--r--gr-qtgui/python/qtgui/toggleswitch.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/gr-qtgui/python/qtgui/toggleswitch.py b/gr-qtgui/python/qtgui/toggleswitch.py
index ea5b98ee82..a869e574de 100644
--- a/gr-qtgui/python/qtgui/toggleswitch.py
+++ b/gr-qtgui/python/qtgui/toggleswitch.py
@@ -186,7 +186,7 @@ class GrToggleSwitch(gr.sync_block, LabeledToggleSwitch):
elif type(self.pressReleasedDict['Pressed']) == float:
self.message_port_pub(pmt.intern("state"),
pmt.cons(pmt.intern(self.outputmsgname),
- pmt.from_float(self.pressReleasedDict['Pressed'])))
+ pmt.from_double(self.pressReleasedDict['Pressed'])))
else:
self.message_port_pub(pmt.intern("state"),
pmt.cons(pmt.intern(self.outputmsgname),
@@ -203,7 +203,7 @@ class GrToggleSwitch(gr.sync_block, LabeledToggleSwitch):
elif type(self.pressReleasedDict['Released']) == float:
self.message_port_pub(pmt.intern("state"),
pmt.cons(pmt.intern(self.outputmsgname),
- pmt.from_float(self.pressReleasedDict['Released'])))
+ pmt.from_double(self.pressReleasedDict['Released'])))
else:
self.message_port_pub(pmt.intern("state"),
pmt.cons(pmt.intern(self.outputmsgname),