todbot / blink1-tool

Command-line tools and C library for blink(1) USB RGB LED
https://blink1.thingm.com/
Other
84 stars 15 forks source link

how to clean cached device list of blink1-tool? #66

Closed furuke closed 9 months ago

furuke commented 11 months ago

with -v opt, device info were retrieved from cache, so how to clean that cache, and where is it stored on macos or linux?

todbot commented 11 months ago

The cache is only in memory and only exists for the duration blink1-tool is run. It exists because USB enumeration is an expensive process and can cause problems for other USB devices, so it's only done once.