From 54a95f0b33da0f3ac38ba5316eb0af9cf0ceced9 Mon Sep 17 00:00:00 2001 From: "Georgy.Khatuncev" Date: Sat, 21 Sep 2024 14:04:10 +0500 Subject: [PATCH] Revert "Fix blink status" This reverts commit 4a4ddef61148c09c62de60267219888846a8d615. --- CanvasCycleVDP/BlinkStatus.js | 2 +- scripts/index.js | 17 +++-------------- 2 files changed, 4 insertions(+), 15 deletions(-) diff --git a/CanvasCycleVDP/BlinkStatus.js b/CanvasCycleVDP/BlinkStatus.js index 216a73c..2a4b899 100644 --- a/CanvasCycleVDP/BlinkStatus.js +++ b/CanvasCycleVDP/BlinkStatus.js @@ -83,7 +83,7 @@ this.BuildDefault = function () { var defaultColor = ['#00f', '#f00', '#0f0']; for (var i = 0; i < defaultColor.length; i++) - this.AddStatus(-1, defaultColor[i]); + this.AddStatus(0, defaultColor[i]); }; //Печать мигалки this.Print = function (ctx) { diff --git a/scripts/index.js b/scripts/index.js index dffa291..2253e93 100644 --- a/scripts/index.js +++ b/scripts/index.js @@ -115,20 +115,9 @@ async function UpdateStatus() { } const cycleMapping = { - 0: [0, -1], - 1: [0, -1], - 2: [1, 0], - 5: [2, 0], - 6: [3, 0], - 7: [4, 0], - 8: [5, 2], - 9: [6, 2], - 10: [7, 2], - 11: [8, 2], - 12: [9, 2], - 14: [1, 1], - 15: [2, 1], - 16: [3, 1] + 0: [0, -1], 1: [0, 1], 2: [1, 0], 5: [2, 0], 6: [3, 0], + 7: [4, 0], 8: [5, 3], 9: [6, 3], 10: [7, 3], 11: [8, 3], + 12: [9, 3], 14: [1, 1], 15: [2, 1], 16: [3, 1] }; data.data.forEach(item => {