Fix blink status
This commit is contained in:
		@@ -83,7 +83,7 @@
 | 
				
			|||||||
	this.BuildDefault = function () {
 | 
						this.BuildDefault = function () {
 | 
				
			||||||
		var defaultColor = ['#00f', '#f00', '#0f0'];
 | 
							var defaultColor = ['#00f', '#f00', '#0f0'];
 | 
				
			||||||
		for (var i = 0; i < defaultColor.length; i++)
 | 
							for (var i = 0; i < defaultColor.length; i++)
 | 
				
			||||||
			this.AddStatus(0, defaultColor[i]);
 | 
								this.AddStatus(-1, defaultColor[i]);
 | 
				
			||||||
	};
 | 
						};
 | 
				
			||||||
	//Печать мигалки
 | 
						//Печать мигалки
 | 
				
			||||||
	this.Print = function (ctx) {
 | 
						this.Print = function (ctx) {
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -115,9 +115,20 @@ async function UpdateStatus() {
 | 
				
			|||||||
		}
 | 
							}
 | 
				
			||||||
		
 | 
							
 | 
				
			||||||
		const cycleMapping = {
 | 
							const cycleMapping = {
 | 
				
			||||||
			0: [0, -1], 1: [0, 1], 2: [1, 0], 5: [2, 0], 6: [3, 0],
 | 
								0: [0, -1],
 | 
				
			||||||
			7: [4, 0], 8: [5, 3], 9: [6, 3], 10: [7, 3], 11: [8, 3],
 | 
								1: [0, -1],
 | 
				
			||||||
			12: [9, 3], 14: [1, 1], 15: [2, 1], 16: [3, 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]
 | 
				
			||||||
		};
 | 
							};
 | 
				
			||||||
		
 | 
							
 | 
				
			||||||
		data.data.forEach(item => {
 | 
							data.data.forEach(item => {
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user