add id argument to loadFDRS()

This commit is contained in:
Timm Bogner 2022-11-28 18:01:45 -06:00
parent ae80dd6aa1
commit 7746812264

View File

@ -497,7 +497,16 @@ void loadFDRS(float d, uint8_t t) {
fdrsData[data_count] = dr; fdrsData[data_count] = dr;
data_count++; data_count++;
} }
void loadFDRS(float d, uint8_t t, uint16_t id) {
DBG("Id: " + String(READING_ID) + " - Type: " + String(t) + " - Data loaded: " + String(d));
if (data_count > espnow_size) sendFDRS();
DataReading dr;
dr.id = id;
dr.t = t;
dr.d = d;
fdrsData[data_count] = dr;
data_count++;
}
void sleepFDRS(int sleep_time) { void sleepFDRS(int sleep_time) {
DBG("Sleepytime!"); DBG("Sleepytime!");
#ifdef DEEP_SLEEP #ifdef DEEP_SLEEP