From 98ca6752f0f513d5068319fb005895dc45eabbd5 Mon Sep 17 00:00:00 2001 From: KalbeAbbas Date: Tue, 23 Jun 2020 13:32:11 +0500 Subject: [PATCH] Update main.ts --- main.ts | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/main.ts b/main.ts index 7141595..79f59c1 100644 --- a/main.ts +++ b/main.ts @@ -1014,6 +1014,7 @@ namespace cw01 { serial.readString() + if(en_Feedback) basic.showIcon(IconNames.Target) serial.writeBuffer(start_byte) @@ -1338,8 +1339,13 @@ namespace cw01 { basic.showString("", 50) return false } - }else{ - return true + }else { + if (cw01_vars.res.includes("HTTP/1.1 200") || cw01_vars.res.includes("HTTP/1.0 200") || cw01_vars.res.includes("HTTP/1.1 201") || cw01_vars.res.includes("HTTP/1.0 202")) + { + return true + }else{ + return false + } } }