From 246d3d994900f543c56593de3dc95fb2695e2abb Mon Sep 17 00:00:00 2001 From: YunHorn Technology Date: Fri, 21 Jun 2024 16:06:32 +0800 Subject: [PATCH] revised GAPVALUE for sensor 1kg = 903 --- Core/Src/sts_weight_scale.c | 2 +- STM32CubeIDE/.cproject | 8 +-- STM32CubeIDE/.project | 10 +-- .../Debug/Application/User/Core/subdir.mk | 43 ++++++------ .../Application/User/LoRaWAN/App/subdir.mk | 8 +-- .../Application/User/LoRaWAN/Target/subdir.mk | 2 +- .../Drivers/BSP/STM32WLxx_Nucleo/subdir.mk | 4 +- STM32CubeIDE/Debug/Drivers/CMSIS/subdir.mk | 2 +- .../Drivers/STM32WLxx_HAL_Driver/subdir.mk | 44 ++++++------ .../Debug/Middlewares/LoRaWAN/subdir.mk | 66 +++++++++--------- .../Debug/Middlewares/SubGHz_Phy/subdir.mk | 6 +- STM32CubeIDE/Debug/Utilities/subdir.mk | 16 ++--- STM32CubeIDE/Debug/objects.list | 1 + .../Release/Application/User/Core/subdir.mk | 68 +++++++++---------- .../Application/User/LoRaWAN/App/subdir.mk | 8 +-- .../Application/User/LoRaWAN/Target/subdir.mk | 2 +- .../Drivers/BSP/STM32WLxx_Nucleo/subdir.mk | 4 +- STM32CubeIDE/Release/Drivers/CMSIS/subdir.mk | 2 +- .../Drivers/STM32WLxx_HAL_Driver/subdir.mk | 44 ++++++------ .../Release/Middlewares/LoRaWAN/subdir.mk | 66 +++++++++--------- .../Release/Middlewares/SubGHz_Phy/subdir.mk | 6 +- STM32CubeIDE/Release/Utilities/subdir.mk | 16 ++--- STM32CubeIDE/Release/objects.list | 2 +- 23 files changed, 218 insertions(+), 212 deletions(-) diff --git a/Core/Src/sts_weight_scale.c b/Core/Src/sts_weight_scale.c index 1028d8a..8ffd183 100644 --- a/Core/Src/sts_weight_scale.c +++ b/Core/Src/sts_weight_scale.c @@ -60,7 +60,7 @@ uint8_t Flag_Error = 0; //如果测试出来的重量偏小时,减小改数值。 //该值可以为小数 //#define GapValue 106.5 -#define GapValue 909.5 // for 1kg bar +#define GapValue 903.2 // for 1kg bar void HX711_Init(void) { diff --git a/STM32CubeIDE/.cproject b/STM32CubeIDE/.cproject index 3e079da..f13463c 100644 --- a/STM32CubeIDE/.cproject +++ b/STM32CubeIDE/.cproject @@ -35,7 +35,7 @@