Skip to content

Commit

Permalink
eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
tp1de committed Feb 15, 2024
1 parent c344869 commit e0ec0bd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/custom.js
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@ function switchProgram_to_telegram(spa) {
const hex = ((h * 60 + m) / 15).toString(16);
data += hex + " ";
c = c + 1;

if (i < spa.length - 1) {
if (spa[i].dayOfWeek != spa[i + 1].dayOfWeek && c < 6) {
for (let ii = 0; ii < 6 - c; ii++) { data += "03 FF "; }
Expand All @@ -383,8 +383,8 @@ function switchProgram_to_telegram(spa) {
else for (let ii = 0; ii < 6 - c; ii++) { data += "03 FF "; }
}
} catch (e) {
adapter.log.error("switchProgram has wrong definition");
adapter.log.error(e+":"+data);
adapter.log.error("switchProgram has wrong definition");
adapter.log.error(e+":"+data);
data= "";
}
return data;
Expand Down

0 comments on commit e0ec0bd

Please sign in to comment.