From 81b6a600cbaf18c485a8c9b9a612f396e0a68609 Mon Sep 17 00:00:00 2001 From: MiroChao <531414952@qq.com> Date: Thu, 2 Jan 2020 10:56:40 +0800 Subject: [PATCH] Update main.ts --- main.ts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/main.ts b/main.ts index a1e98e1..c088082 100644 --- a/main.ts +++ b/main.ts @@ -297,7 +297,7 @@ namespace grove { } this.bit(0x7f, 0); } - else + else if(dispData < 10000) { this.bit(dispData % 10, 3); if(compare_01 > 90){ @@ -316,6 +316,13 @@ namespace grove { this.bit(Math.floor(dispData / 1000) % 10, 0); } } + else + { + this.bit(9, 3); + this.bit(9, 2); + this.bit(9, 1); + this.bit(9, 0); + } } /**