From 73fac23981712578a0ada7478b6eefded0fa17de Mon Sep 17 00:00:00 2001 From: leca Date: Fri, 14 Jul 2023 03:07:08 +0300 Subject: [PATCH] encryption is now optionable --- code/code.ino | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/code/code.ino b/code/code.ino index 600441c..ec3fd52 100644 --- a/code/code.ino +++ b/code/code.ino @@ -76,12 +76,14 @@ void loop() { for (int i = 0; i < micValuesLength; i ++) { micValues[i] = analogRead(micPin) << 2; } - encryptDecyptData(); + if (encryption) + encryptDecyptData(); radio.write(micValues, 32); } else { // receive if (radio.available()) { radio.read(micValues, 32); - encryptDecyptData(); + if (encryption) + encryptDecyptData(); for (int i = 0; i < micValuesLength; i++) { PORTD = micValues[i]; }