Skip to content

Commit 37fa050

Browse files
committed
wid: Make GATT WIDs always return same type
Some Edit MMI style WIDs are used to enter values and boolean return would be converted to integer anyway.
1 parent dd91eae commit 37fa050

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

autopts/wid/gatt.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1959,7 +1959,7 @@ def hdl_wid_151(_: WIDParams):
19591959
stack.gatt.value_len = val_len
19601960
return f'{handle:04x}'
19611961

1962-
return False
1962+
return 0
19631963

19641964

19651965
def hdl_wid_152(_: WIDParams):
@@ -2000,7 +2000,7 @@ def hdl_wid_152(_: WIDParams):
20002000
stack.gatt.value_len = val_len
20012001
return f'{handle:04x}'
20022002

2003-
return False
2003+
return 0
20042004

20052005

20062006
def hdl_wid_154(_: WIDParams):

0 commit comments

Comments
 (0)