Showing 1 changed files with 9 additions and 7 deletions
+9 -7
Nasal/softkeys.nas
... ...
@@ -249,13 +249,15 @@ var softkeysClass = {
249 249
                     pop(me.path);
250 250
                     me.device.display.updateSoftKeys();
251 251
                 },
252
-                IN :  func {
253
-                    me.device.display._baro_unit = 'inhg';
254
-                    me.device.display.updateBARO();
255
-                },
256
-                HPA : func {
257
-                    me.device.display._baro_unit = 'hpa';
258
-                    me.device.display.updateBARO();
252
+                'ALT UNIT' : {
253
+                    IN :  func {
254
+                        data.settings.units.pressure = 'inhg';
255
+                        me.device.display.updateBARO();
256
+                    },
257
+                    HPA : func {
258
+                        data.settings.units.pressure = 'hpa';
259
+                        me.device.display.updateBARO();
260
+                    },
259 261
                 },
260 262
             },
261 263
             XPDR: {