From 37f253e3ed1b1d32894d067e79d460699d712f3f Mon Sep 17 00:00:00 2001 From: MyrddinoptRoodt Date: Tue, 16 Nov 2021 10:26:20 +0100 Subject: [PATCH] fix_bug --- src/main.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 7431948..881a645 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -475,7 +475,9 @@ void decodeData(uint16_t * Datass){ //this function is to "decode" the data, sin if (((temp == Blue) or (temp == Red) or (temp == Green) or (temp == White)) and (temp != FFA)) // if (((temp == Blue) or (temp == Red) or (temp == Green) or (temp == White)) and (temp != eigenteam) and (eigenteam != FFA)) { - get_damage(binairy_code.substring(15,17)); + if ((temp != eigenteam) and (eigenteam != FFA)){ + get_damage(binairy_code.substring(15,17)); + } b = false; } if (temp == FFA) @@ -486,11 +488,8 @@ void decodeData(uint16_t * Datass){ //this function is to "decode" the data, sin } b = false; } - b = false; - } - }