From 31c5f5456a908d9f2fd21df50da06d65aa027d08 Mon Sep 17 00:00:00 2001 From: Boris Rybar Date: Mon, 13 Nov 2023 23:15:03 +0100 Subject: [PATCH] Update ldds04 chirpstackV4 decoder.txt Fix misplaced semicolons. --- LDDS04/ldds04 chirpstackV4 decoder.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/LDDS04/ldds04 chirpstackV4 decoder.txt b/LDDS04/ldds04 chirpstackV4 decoder.txt index 94f2892..58c3e35 100644 --- a/LDDS04/ldds04 chirpstackV4 decoder.txt +++ b/LDDS04/ldds04 chirpstackV4 decoder.txt @@ -1,7 +1,7 @@ function decodeUplink(input) { return { data: Decode(input.fPort, input.bytes, input.variables) - }; + } } function Decode(fPort, bytes, variables) { var decode = {}; @@ -10,7 +10,7 @@ function Decode(fPort, bytes, variables) { decode.EXTI_Trigger=(bytes[0] & 0x80)? "TRUE":"FALSE"; decode.distance1_cm=(bytes[2]<<8 | bytes[3])/10; decode.distance2_cm=(bytes[4]<<8 | bytes[5])/10; - decode.distance3_cm=(bytes[6]<<8 | bytes[7])/10 + decode.distance3_cm=(bytes[6]<<8 | bytes[7])/10; decode.distance4_cm=(bytes[8]<<8 | bytes[9])/10; decode.mes_type= bytes[10]; @@ -18,4 +18,4 @@ function Decode(fPort, bytes, variables) { { return decode; } -} \ No newline at end of file +}