Removed health status from Speed & RPM
This commit is contained in:
@@ -230,7 +230,9 @@ class TelemetryService
|
|||||||
$transformedTelemetry[] = [
|
$transformedTelemetry[] = [
|
||||||
'display_name' => $displayNameMap[$key] ?? $key,
|
'display_name' => $displayNameMap[$key] ?? $key,
|
||||||
'value' => $this->getTypeWiseValue($key, $value),
|
'value' => $this->getTypeWiseValue($key, $value),
|
||||||
'health_status' => !$isActive ? 'Offline' : $status,
|
'health_status' => !$isActive
|
||||||
|
? 'Offline'
|
||||||
|
: (in_array($displayNameMap[$key], ['Speed', 'RPM']) ? 'Offline' : $status),
|
||||||
'status_color' => !$isActive ? 'gray' : $statusColor,
|
'status_color' => !$isActive ? 'gray' : $statusColor,
|
||||||
'thresholds' => $thresholds,
|
'thresholds' => $thresholds,
|
||||||
'limit' => $thresholdLimits
|
'limit' => $thresholdLimits
|
||||||
|
|||||||
Reference in New Issue
Block a user