summaryrefslogtreecommitdiff
path: root/src/config.h
diff options
context:
space:
mode:
authorAditya Naik2020-06-18 17:24:49 -0400
committerAditya Naik2020-06-22 12:41:42 -0400
commit2acabd3ce6ed5522a2b3ce6728facc74bbbbd23a (patch)
tree1920dbc79c467cdbdb8cc5e1919dff3635439c5f /src/config.h
parent0746618ebe57ba8d452ad5cc907ddd478b512898 (diff)
Optimizations for master data and command routing handling and corresponding changes for slave data and command decoding. Master no longer decodes data in order send individual datapoints in a packed data_message field individually, but stores and forwards the encoded data message and MDR to the slaves during routing. This significantly optimizes data routing by reducing the time taken to decode and encode every single packed datapoint.
Task List: None
Diffstat (limited to 'src/config.h')
-rw-r--r--src/config.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/config.h b/src/config.h
index ad035c9..e4a6590 100644
--- a/src/config.h
+++ b/src/config.h
@@ -1,9 +1,9 @@
/* Enable debug mode */
-#define DEBUG_ENABLE 1
+/* #define DEBUG_ENABLE 1 */
/* Enable testing mode */
-#define TESTING_ENABLE 1
+/* #define TESTING_ENABLE 1 */
/* Buffer size for routing */
#define ROUTING_BUFSIZE 128
@@ -19,4 +19,4 @@
* hardware.
*
*/
-#define MASTER_I2C_BUS_INTERVAL 150
+#define MASTER_I2C_BUS_INTERVAL 5