Clean up unused code and done TODO
This commit is contained in:
parent
2345498ffc
commit
9057d67c0c
2 changed files with 0 additions and 11 deletions
|
|
@ -3,13 +3,6 @@
|
||||||
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|
||||||
// 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 {
|
typedef struct prst_adc_batt_val {
|
||||||
int16_t raw;
|
int16_t raw;
|
||||||
uint16_t millivolts;
|
uint16_t millivolts;
|
||||||
|
|
|
||||||
|
|
@ -9,10 +9,6 @@
|
||||||
|
|
||||||
#include "prst_config.h"
|
#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.
|
// We need to pick a service UUID for broadcasting our sensor data.
|
||||||
// 0x181a is defined as "environmental sensing", which seems appopriate.
|
// 0x181a is defined as "environmental sensing", which seems appopriate.
|
||||||
#define SERVICE_UUID 0x181a
|
#define SERVICE_UUID 0x181a
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue