From f779745dcfd059a0a66f890ca80a4d71f4ac0d5f Mon Sep 17 00:00:00 2001 From: Trung Tran Date: Mon, 12 Nov 2018 14:20:51 -0800 Subject: mpm:e320: fixup gps_locked type gps_locked should be a bool not int. --- mpm/python/usrp_mpm/periph_manager/e320.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mpm/python/usrp_mpm/periph_manager/e320.py') diff --git a/mpm/python/usrp_mpm/periph_manager/e320.py b/mpm/python/usrp_mpm/periph_manager/e320.py index 035df436f..8ec6c75e0 100644 --- a/mpm/python/usrp_mpm/periph_manager/e320.py +++ b/mpm/python/usrp_mpm/periph_manager/e320.py @@ -645,7 +645,7 @@ class e320(ZynqComponents, PeriphManagerBase): """ Get lock status of GPS as a sensor dict """ - gps_locked = self.mboard_regs_control.get_gps_locked_val() + gps_locked = bool(self.mboard_regs_control.get_gps_locked_val()) return { 'name': 'gps_lock', 'type': 'BOOLEAN', -- cgit v1.2.3