Skip to content

Commit

Permalink
main: remove trailing spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefan Priebe committed Oct 27, 2023
1 parent 9f37038 commit 5a6f0df
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -379,17 +379,17 @@ class Signifylights extends utils.Adapter {
} else {
this.HOST = this.config.bind_ip;
this.log.info("config bind ip address: " + this.config.bind_ip);
if (this.config.register_devices === true &&
if (this.config.register_devices === true &&
!(this.config.udpip && this.config.udpip.length > 0 &&
this.config.udpmac && this.config.udpmac.length > 0)) {
this.log.error("adapter is unconfigured, udp target ip and/or udp mac address for auto update missing");
this.config.udpmac && this.config.udpmac.length > 0)) {
this.log.error("adapter is unconfigured, udp target ip and/or udp mac address for auto update missing");
} else {
if (this.config.register_devices === true){
this.log.info("config register devices for auto update: enabled");
this.IP = this.config.udpip;
this.log.info("config udp target IP for auto update: " + this.config.udpip);
this.MAC = this.config.udpmac.replace(/:/g, '').toUpperCase();
this.log.info("config udp mac address for auto update: " + this.MAC);
this.log.info("config udp mac address for auto update: " + this.MAC);
}
await this.open_udp_sockets();

Expand Down

0 comments on commit 5a6f0df

Please sign in to comment.