Browse Source

Fix display unit selection

Neal Wilson 11 years ago
parent
commit
c1f38963fc
1 changed files with 4 additions and 4 deletions
  1. 4
    4
      config/Windows/productionroaster.xml

+ 4
- 4
config/Windows/productionroaster.xml View File

573
         showC.triggered.connect(function() {
573
         showC.triggered.connect(function() {
574
 			for(var i = 0; i < temperatureDisplays.length; i++)
574
 			for(var i = 0; i < temperatureDisplays.length; i++)
575
 			{
575
 			{
576
-				temperatureDisplays[i].setDisplayUnits(TemperatureDisplay.Celsius);
576
+				temperatureDisplays[i].setDisplayUnits(DAQ.Celsius);
577
 			}
577
 			}
578
-            log.setDisplayUnits(TemperatureDisplay.Celsius);
578
+            log.setDisplayUnits(DAQ.Celsius);
579
             graph.showC();
579
             graph.showC();
580
         });
580
         });
581
         var showF = findChildObject(this, 'showF');
581
         var showF = findChildObject(this, 'showF');
582
         showF.triggered.connect(function() {
582
         showF.triggered.connect(function() {
583
 			for(var i = 0; i < temperatureDisplays.length; i++)
583
 			for(var i = 0; i < temperatureDisplays.length; i++)
584
 			{
584
 			{
585
-				temperatureDisplays[i].setDisplayUnits(TemperatureDisplay.Fahrenheit);
585
+				temperatureDisplays[i].setDisplayUnits(DAQ.Fahrenheit);
586
 			}
586
 			}
587
-            log.setDisplayUnits(TemperatureDisplay.Fahrenheit);
587
+            log.setDisplayUnits(DAQ.Fahrenheit);
588
             graph.showF();
588
             graph.showF();
589
         });
589
         });
590
 		var clear = findChildObject(this, 'clear');
590
 		var clear = findChildObject(this, 'clear');

Loading…
Cancel
Save