up
This commit is contained in:
@@ -102,14 +102,14 @@
|
||||
<!-- Temperature Gauges -->
|
||||
<div class="temp-group">
|
||||
<div class="temp-item">
|
||||
<div class="temp-value" style="color: {tempColor}">{temperature.toFixed(0)}°</div>
|
||||
<div class="temp-value" style="color: {tempColor}">{temperature.toFixed(1)}°</div>
|
||||
<div class="temp-label">PA Temp</div>
|
||||
<div class="temp-mini-bar">
|
||||
<div class="temp-mini-fill" style="width: {(temperature / 80) * 100}%; background: {tempColor}"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="temp-item">
|
||||
<div class="temp-value" style="color: {tempColor}">{harmonicLoadTemp.toFixed(0)}°</div>
|
||||
<div class="temp-value" style="color: {tempColor}">{harmonicLoadTemp.toFixed(1)}°</div>
|
||||
<div class="temp-label">HL Temp</div>
|
||||
<div class="temp-mini-bar">
|
||||
<div class="temp-mini-fill" style="width: {(harmonicLoadTemp / 80) * 100}%; background: {tempColor}"></div>
|
||||
|
||||
@@ -3,7 +3,14 @@
|
||||
|
||||
export let status;
|
||||
|
||||
$: heading = status?.heading || 0;
|
||||
let heading = 0;
|
||||
let connected = false;
|
||||
|
||||
// Update heading only if we have a valid value from status
|
||||
$: if (status?.heading !== undefined && status?.heading !== null) {
|
||||
heading = status.heading;
|
||||
}
|
||||
|
||||
$: connected = status?.connected || false;
|
||||
|
||||
let targetHeading = 0;
|
||||
|
||||
Reference in New Issue
Block a user