Skip to content

Commit

Permalink
Reset time display when device is disconnected
Browse files Browse the repository at this point in the history
Retaining the time and simply greying it out when connection was lost
was confusing users who believed the AudioMoth was still connected.
  • Loading branch information
OpenAcousticDevices committed Aug 8, 2017
1 parent 3b03955 commit dda43a6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion ui.js
Original file line number Diff line number Diff line change
@@ -137,7 +137,7 @@ exports.getSelectedRadioValue = getSelectedRadioValue;

/* Initialise device information displays */

exports.initialiseDisplay = function () {
function initialiseDisplay() {

idDisplay.value = "0000000000000000";

@@ -147,6 +147,8 @@ exports.initialiseDisplay = function () {

};

exports.initialiseDisplay = initialiseDisplay;

/* Disable/enable device information display */

exports.disableDisplay = function () {
@@ -163,6 +165,8 @@ exports.disableDisplay = function () {

configureButton.disabled = true;

initialiseDisplay();

};

exports.enableDisplayAndShowTime = function (date) {

0 comments on commit dda43a6

Please sign in to comment.