Skip to content

Commit 7e33f97

Browse files
committed
qtvcp -HAL bar: fix ability to set HAL pin name
1 parent 30a33b4 commit 7e33f97

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • lib/python/qtvcp/widgets

lib/python/qtvcp/widgets/bar.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -309,10 +309,10 @@ def __init__(self, *args, **kwargs):
309309
self._pin_name = ''
310310

311311
def _hal_init(self):
312-
if self._pin_name_ == '':
312+
if self._pin_name == '':
313313
pname = self.HAL_NAME_
314314
else:
315-
pname = self._pin_name_
315+
pname = self._pin_name
316316

317317
if self._pin_type == HALPinType.FLOAT:
318318
self.hal_pin = self.HAL_GCOMP_.newpin(pname, hal.HAL_FLOAT, hal.HAL_IN)

0 commit comments

Comments
 (0)