mirror of
https://github.com/d4rken-org/capod.git
synced 2026-09-14 18:26:11 -04:00
Only need to process pods if the data has changed, reduces logspam a bit.
This commit is contained in:
@@ -23,6 +23,7 @@ class AutoConnect @Inject constructor(
|
||||
|
||||
fun monitor(): Flow<Unit> = podMonitor.mainDevice
|
||||
.filterNotNull()
|
||||
.distinctUntilChanged()
|
||||
.map { podDevice ->
|
||||
log(TAG) { "mainPodDevice is $podDevice" }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user