Move PCB type and version to DTS

This commit is contained in:
Martin Jäger
2020-05-06 12:53:26 +02:00
parent 4e6f6c7365
commit affaa9d8e8
14 changed files with 55 additions and 26 deletions
+2 -2
View File
@@ -25,8 +25,8 @@
#include "eeprom.h"
const char* const manufacturer = "Libre Solar";
const char* const device_type = DEVICE_TYPE;
const char* const hardware_version = HARDWARE_VERSION;
const char* const device_type = DT_CHARGE_CONTROLLER_PCB_TYPE;
const char* const hardware_version = DT_CHARGE_CONTROLLER_PCB_VERSION_STR;
const char* const firmware_version = "0.1";
const char* const firmware_commit = COMMIT_HASH;
uint32_t device_id = CONFIG_DEVICE_ID;