mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-04-20 22:23:37 +00:00
fix: ignore non-local localStats telemetry (#2206)
This commit is contained in:
parent
3e3e4919bd
commit
9b0dcfdeab
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue