Refining logging

This commit is contained in:
Thaddeus Hughes
2026-01-13 18:35:31 -06:00
parent 49e728ec2b
commit 982ada9787
14 changed files with 594 additions and 507 deletions

View File

@@ -8,6 +8,7 @@
#include "power_mgmt.h"
#include "rf_433.h"
#include "rtc.h"
#include "sensors.h"
#include "storage.h"
#include "version.h"
#include <string.h>
@@ -77,6 +78,11 @@ cJSON* comms_handle_get(void) {
cJSON_AddItemToArray(msg_array, cJSON_CreateString("CLOCK NOT SET"));
}
if (!get_is_safe()) {
cJSON_AddItemToArray(msg_array, cJSON_CreateString("SAFETY SENSOR BREAK"));
}
cJSON_AddItemToObject(root, "msg", msg_array);
// Add parameters object