From 63327986b4d4f9f93c0528d8a23db57200dbcf41 Mon Sep 17 00:00:00 2001 From: Kevin Hester Date: Wed, 3 Jul 2024 20:11:59 -0700 Subject: [PATCH] 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! --- meshtastic/util.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/meshtastic/util.py b/meshtastic/util.py index c95aef0..8cb177c 100644 --- a/meshtastic/util.py +++ b/meshtastic/util.py @@ -25,16 +25,18 @@ from meshtastic.supported_device import supported_devices from meshtastic.version import get_active_version """Some devices such as a seger jlink or st-link we never want to accidentally open + 0483 STMicroelectronics ST-LINK/V2 + 0136 SEGGER J-Link 1915 NordicSemi (PPK2) 0925 Lakeview Research Saleae Logic (logic analyzer) 04b4:602a Cypress Semiconductor Corp. Hantek DSO-6022BL (oscilloscope) """ -blacklistVids = dict.fromkeys([0x1366, 0x0483, 0x1915, 0x0925]) +blacklistVids = dict.fromkeys([0x1366, 0x0483, 0x1915, 0x0925, 0x04b4]) """Some devices are highly likely to be meshtastic. 0x239a RAK4631 0x303a Heltec tracker""" -whitelistVids = dict.fromkeys([0x239a, 0x303a, 0x04b4]) +whitelistVids = dict.fromkeys([0x239a, 0x303a]) def quoteBooleans(a_string):