diff --git a/src/EyesAndEars.UWP/EyesAndEars.UWP/MainPage.xaml b/src/EyesAndEars.UWP/EyesAndEars.UWP/MainPage.xaml
index 68fbd7e..ff64d14 100644
--- a/src/EyesAndEars.UWP/EyesAndEars.UWP/MainPage.xaml
+++ b/src/EyesAndEars.UWP/EyesAndEars.UWP/MainPage.xaml
@@ -40,7 +40,7 @@
-
@@ -74,7 +74,7 @@
Text="{x:Bind _vm.Device1.LatestReading.reading,
Mode=OneWay, FallbackValue=404}" Foreground="White"
VerticalAlignment="Bottom" FontSize="144"/>
-
@@ -91,7 +91,7 @@
Text="{x:Bind _vm.Device2.LatestReading.reading,
Mode=OneWay, FallbackValue=404}" Foreground="White"
VerticalAlignment="Bottom" FontSize="144"/>
-
diff --git a/src/EyesAndEars.UWP/EyesAndEars.UWP/Package.appxmanifest b/src/EyesAndEars.UWP/EyesAndEars.UWP/Package.appxmanifest
index 680dd61..962c221 100644
--- a/src/EyesAndEars.UWP/EyesAndEars.UWP/Package.appxmanifest
+++ b/src/EyesAndEars.UWP/EyesAndEars.UWP/Package.appxmanifest
@@ -9,7 +9,7 @@
+ Version="2021.5.26.0" />
diff --git a/src/EyesAndEars.UWP/EyesAndEars.UWP/Services/DataServices.cs b/src/EyesAndEars.UWP/EyesAndEars.UWP/Services/DataServices.cs
index e3bd735..72e5220 100644
--- a/src/EyesAndEars.UWP/EyesAndEars.UWP/Services/DataServices.cs
+++ b/src/EyesAndEars.UWP/EyesAndEars.UWP/Services/DataServices.cs
@@ -103,22 +103,23 @@ namespace EyesAndEars.UWP.Services {
* the system knows about and everything is fine -- nothing
* is broken.
*/
-
- if (device == 1) {
- if (reading > 0 && reading <= 39) // No weld detected.
- return new SolidColorBrush(Colors.LightSeaGreen);
- if (reading > 38) // Weld detected.
- return new SolidColorBrush(Colors.DarkSeaGreen);
- }
- else if (device == 2) {
- if (reading > 0 && reading <= 48) // No weld detected.
- return new SolidColorBrush(Colors.LightSeaGreen);
- if (reading > 48) // Weld detected.
- return new SolidColorBrush(Colors.DarkSeaGreen);
- }
- else if (reading < 0) {
- // The device is on but factory lights are off.
- return new SolidColorBrush(Colors.LightSkyBlue);
+ if (device == 1 || device == 2) {
+ if (device == 1) {
+ if (reading > 0 && reading <= 39) // No weld detected.
+ return new SolidColorBrush(Colors.LightSeaGreen);
+ if (reading > 38) // Weld detected.
+ return new SolidColorBrush(Colors.DarkSeaGreen);
+ }
+ else if (device == 2) {
+ if (reading > 0 && reading <= 48) // No weld detected.
+ return new SolidColorBrush(Colors.LightSeaGreen);
+ if (reading > 48) // Weld detected.
+ return new SolidColorBrush(Colors.DarkSeaGreen);
+ }
+ else if (reading < 0) {
+ // The device is on but factory lights are off.
+ return new SolidColorBrush(Colors.LightSkyBlue);
+ }
}
// Indicate the gallery relays are on.
return new SolidColorBrush(Colors.LightSeaGreen);