mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-05-19 04:09:37 -04:00
fix: ignore non-local localStats telemetry (#2206)
This commit is contained in:
@@ -983,7 +983,8 @@ class MeshService : Service(), Logging {
|
||||
fromNum: Int,
|
||||
t: TelemetryProtos.Telemetry,
|
||||
) {
|
||||
if (t.hasLocalStats()) {
|
||||
val isRemote = (fromNum != myNodeNum)
|
||||
if (!isRemote && t.hasLocalStats()) {
|
||||
localStatsTelemetry = t
|
||||
maybeUpdateServiceStatusNotification()
|
||||
}
|
||||
@@ -991,7 +992,6 @@ class MeshService : Service(), Logging {
|
||||
when {
|
||||
t.hasDeviceMetrics() -> {
|
||||
it.deviceTelemetry = t
|
||||
val isRemote = (fromNum != myNodeNum)
|
||||
if (fromNum == myNodeNum || (isRemote && it.isFavorite)) {
|
||||
if (t.deviceMetrics.voltage > batteryPercentUnsupported &&
|
||||
t.deviceMetrics.batteryLevel <= batteryPercentLowThreshold
|
||||
|
||||
Reference in New Issue
Block a user