diff --git a/lib/configsetup.inc.php b/lib/configsetup.inc.php index bc34cd2fe..860ec9949 100644 --- a/lib/configsetup.inc.php +++ b/lib/configsetup.inc.php @@ -1463,8 +1463,8 @@ 'range_max' => 100, 'range_step' => 5, 'unit' => 'milliseconds', - ], - 'remotebuzzer_logfile' => [ + ], + 'remotebuzzer_logfile' => [ 'view' => 'expert', 'type' => 'hidden', 'name' => 'remotebuzzer[logfile]', diff --git a/src/js/remotebuzzer_server.js b/src/js/remotebuzzer_server.js index d2833499a..ba411ef38 100644 --- a/src/js/remotebuzzer_server.js +++ b/src/js/remotebuzzer_server.js @@ -511,7 +511,9 @@ if (config.remotebuzzer.userotary) { log('ROTARY support active'); const rotaryClk = new Gpio(config.remotebuzzer.rotaryclkgpio, 'in', 'both'); const rotaryDt = new Gpio(config.remotebuzzer.rotarydtgpio, 'in', 'both'); - const rotaryBtn = new Gpio(config.remotebuzzer.rotarybtngpio, 'in', 'both', {debounceTimeout: config.remotebuzzer.debounce}); + const rotaryBtn = new Gpio(config.remotebuzzer.rotarybtngpio, 'in', 'both', { + debounceTimeout: config.remotebuzzer.debounce + }); rotaryClkPin = 0; rotaryDtPin = 0; @@ -535,7 +537,9 @@ if (config.remotebuzzer.userotary) { if (config.remotebuzzer.usebuttons) { log('BUTTON support active'); if (config.remotebuzzer.picturebutton) { - const pictureButton = new Gpio(config.remotebuzzer.picturegpio, 'in', 'both', {debounceTimeout: config.remotebuzzer.debounce}); + const pictureButton = new Gpio(config.remotebuzzer.picturegpio, 'in', 'both', { + debounceTimeout: config.remotebuzzer.debounce + }); if (!config.remotebuzzer.collagebutton && config.collage.enabled) { pictureButton.watch(watchPictureGPIOwithCollage); @@ -549,21 +553,27 @@ if (config.remotebuzzer.usebuttons) { /* COLLAGE BUTTON */ if (config.remotebuzzer.collagebutton && config.collage.enabled) { - const collageButton = new Gpio(config.remotebuzzer.collagegpio, 'in', 'both', {debounceTimeout: config.remotebuzzer.debounce}); + const collageButton = new Gpio(config.remotebuzzer.collagegpio, 'in', 'both', { + debounceTimeout: config.remotebuzzer.debounce + }); collageButton.watch(watchCollageGPIO); log('Looking for Collage Button on Raspberry GPIO', config.remotebuzzer.collagegpio); } /* SHUTDOWN BUTTON */ if (config.remotebuzzer.shutdownbutton) { - const shutdownButton = new Gpio(config.remotebuzzer.shutdowngpio, 'in', 'both', {debounceTimeout: config.remotebuzzer.debounce}); + const shutdownButton = new Gpio(config.remotebuzzer.shutdowngpio, 'in', 'both', { + debounceTimeout: config.remotebuzzer.debounce + }); shutdownButton.watch(watchShutdownGPIO); log('Looking for Shutdown Button on Raspberry GPIO', config.remotebuzzer.shutdowngpio); } /* PRINT BUTTON */ if (config.remotebuzzer.printbutton) { - const printButton = new Gpio(config.remotebuzzer.printgpio, 'in', 'both', {debounceTimeout: config.remotebuzzer.debounce}); + const printButton = new Gpio(config.remotebuzzer.printgpio, 'in', 'both', { + debounceTimeout: config.remotebuzzer.debounce + }); printButton.watch(watchPrintGPIO); log('Looking for Print Button on Raspberry GPIO', config.remotebuzzer.printgpio); }