Skip to content

Commit

Permalink
Update badge manager device filter
Browse files Browse the repository at this point in the history
  • Loading branch information
Lamorak authored and milosmns committed Jul 3, 2024
1 parent 4f1efce commit d7c9ff3
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,8 @@ actual typealias Environment = Any
actual fun buildBadgeManager(environment: Environment): BadgeManager = object : JvmBadgeManager() {
override fun getBadger2040s() = SerialPort.getCommPorts()
.filter {
println(it.systemPortName)
true
// return the first serial comm device, can't find it by descriptive name
// it.descriptivePortName.contains("Badger")
// Device doesn't show any better descriptive name on Windows, this should be good enough
it.portDescription.contains("CircuitPython")
}
.toList()
}

0 comments on commit d7c9ff3

Please sign in to comment.