Skip to content

Commit 6332798

Browse files
committed
fix incorrect Vid - thanks @ianmcorvidae for notixing.
0x04b4 is cypress semi but commonly used in Chinese oscopes (like mine). So it was supposed to be a blacklist not a whitelist!
1 parent 5695ec7 commit 6332798

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

meshtastic/util.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,16 +25,18 @@
2525
from meshtastic.version import get_active_version
2626

2727
"""Some devices such as a seger jlink or st-link we never want to accidentally open
28+
0483 STMicroelectronics ST-LINK/V2
29+
0136 SEGGER J-Link
2830
1915 NordicSemi (PPK2)
2931
0925 Lakeview Research Saleae Logic (logic analyzer)
3032
04b4:602a Cypress Semiconductor Corp. Hantek DSO-6022BL (oscilloscope)
3133
"""
32-
blacklistVids = dict.fromkeys([0x1366, 0x0483, 0x1915, 0x0925])
34+
blacklistVids = dict.fromkeys([0x1366, 0x0483, 0x1915, 0x0925, 0x04b4])
3335

3436
"""Some devices are highly likely to be meshtastic.
3537
0x239a RAK4631
3638
0x303a Heltec tracker"""
37-
whitelistVids = dict.fromkeys([0x239a, 0x303a, 0x04b4])
39+
whitelistVids = dict.fromkeys([0x239a, 0x303a])
3840

3941

4042
def quoteBooleans(a_string):

0 commit comments

Comments
 (0)