From 8b77d51a880aa2c30dd911f53d8bfc44c6ccbaa5 Mon Sep 17 00:00:00 2001 From: pvvx Date: Thu, 11 Jan 2024 12:07:39 +0300 Subject: [PATCH] add config.h, clean code... --- bthome_phy6222/.cproject | 16 ++- .../SDK/components/driver/flash/flash.c | 12 +- .../SDK/components/driver/flash/flash.h | 16 +-- .../SDK/lib/ble_host/gap_configmgr.c | 2 +- bthome_phy6222/SDK/lib/rf/patch.c | 5 +- bthome_phy6222/source/battery.c | 108 ++++++------------ bthome_phy6222/source/battery.h | 5 +- bthome_phy6222/source/battservice.c | 4 +- bthome_phy6222/source/battservice.h | 18 +-- bthome_phy6222/source/bleperipheral.h | 9 +- bthome_phy6222/source/config.h | 32 ++++++ bthome_phy6222/source/devinfoservice.c | 38 ++++-- bthome_phy6222/source/devinfoservice.h | 2 + bthome_phy6222/source/halperipheral.h | 4 +- bthome_phy6222/source/main.c | 4 +- bthome_phy6222/source/sensor.h | 5 + bthome_phy6222/source/sensors.c | 45 ++++---- bthome_phy6222/source/thb2_main.c | 101 ++++++++++------ bthome_phy6222/source/thb2_peripheral.c | 2 +- bthome_phy6222/source/thb2_peripheral.h | 9 +- bthome_phy6222/source/thservice.c | 4 +- bthome_phy6222/source/thservice.h | 25 ++-- 22 files changed, 246 insertions(+), 220 deletions(-) create mode 100644 bthome_phy6222/source/config.h diff --git a/bthome_phy6222/.cproject b/bthome_phy6222/.cproject index 0bf252c..3fa07c2 100644 --- a/bthome_phy6222/.cproject +++ b/bthome_phy6222/.cproject @@ -14,7 +14,7 @@ - +