From 9057d67c0c45198d6c5aad36f7523cdc11775fd7 Mon Sep 17 00:00:00 2001 From: rbaron Date: Sat, 10 Apr 2021 18:05:44 +0200 Subject: [PATCH] Clean up unused code and done TODO --- code/b-parasite/src/prst/adc.h | 7 ------- code/b-parasite/src/prst/ble.c | 4 ---- 2 files changed, 11 deletions(-) diff --git a/code/b-parasite/src/prst/adc.h b/code/b-parasite/src/prst/adc.h index 95b9a0a..6b2bebe 100644 --- a/code/b-parasite/src/prst/adc.h +++ b/code/b-parasite/src/prst/adc.h @@ -3,13 +3,6 @@ #include -// ADC values. Assumes 10 bits resolution. -// TODO(rbaron) this values drift a little bit as the battery discharges. -// I previously did a hacky linear regression to estimate them, but I'm -// not super sure how useful that is. -#define PRST_SOIL_WET 200 -#define PRST_SOIL_DRY 450 - typedef struct prst_adc_batt_val { int16_t raw; uint16_t millivolts; diff --git a/code/b-parasite/src/prst/ble.c b/code/b-parasite/src/prst/ble.c index 157b2ab..1005272 100644 --- a/code/b-parasite/src/prst/ble.c +++ b/code/b-parasite/src/prst/ble.c @@ -9,10 +9,6 @@ #include "prst_config.h" -// TODO(rbaron): More info in the adv packet: -// - Software version -// - Counter - // We need to pick a service UUID for broadcasting our sensor data. // 0x181a is defined as "environmental sensing", which seems appopriate. #define SERVICE_UUID 0x181a