try find out where is the issue
This commit is contained in:
parent
722fb52edb
commit
a9c11f54e2
|
@ -78,7 +78,6 @@ void MX_GPIO_Init(void)
|
||||||
GPIO_InitStruct.Mode = GPIO_MODE_IT_FALLING;
|
GPIO_InitStruct.Mode = GPIO_MODE_IT_FALLING;
|
||||||
GPIO_InitStruct.Pull = GPIO_PULLUP;
|
GPIO_InitStruct.Pull = GPIO_PULLUP;
|
||||||
HAL_GPIO_Init(BUT3_GPIO_Port, &GPIO_InitStruct);
|
HAL_GPIO_Init(BUT3_GPIO_Port, &GPIO_InitStruct);
|
||||||
|
|
||||||
#ifdef STS_WS
|
#ifdef STS_WS
|
||||||
// STS_Weight_Scale
|
// STS_Weight_Scale
|
||||||
|
|
||||||
|
|
|
@ -23,7 +23,7 @@
|
||||||
|
|
||||||
/* Private includes ----------------------------------------------------------*/
|
/* Private includes ----------------------------------------------------------*/
|
||||||
/* USER CODE BEGIN Includes */
|
/* USER CODE BEGIN Includes */
|
||||||
#include "sts_weight_scale.h"
|
|
||||||
/* USER CODE END Includes */
|
/* USER CODE END Includes */
|
||||||
|
|
||||||
/* Private typedef -----------------------------------------------------------*/
|
/* Private typedef -----------------------------------------------------------*/
|
||||||
|
@ -85,14 +85,9 @@ int main(void)
|
||||||
|
|
||||||
/* Initialize all configured peripherals */
|
/* Initialize all configured peripherals */
|
||||||
MX_GPIO_Init();
|
MX_GPIO_Init();
|
||||||
|
|
||||||
MX_LoRaWAN_Init();
|
MX_LoRaWAN_Init();
|
||||||
/* USER CODE BEGIN 2 */
|
/* USER CODE BEGIN 2 */
|
||||||
|
|
||||||
APP_LOG(TS_OFF, VLEVEL_M, "\r\n ----- Start ----- \r\n");
|
|
||||||
|
|
||||||
//sts_weight_scale();
|
|
||||||
|
|
||||||
/* USER CODE END 2 */
|
/* USER CODE END 2 */
|
||||||
|
|
||||||
/* Infinite loop */
|
/* Infinite loop */
|
||||||
|
@ -100,8 +95,6 @@ int main(void)
|
||||||
while (1)
|
while (1)
|
||||||
{
|
{
|
||||||
/* USER CODE END WHILE */
|
/* USER CODE END WHILE */
|
||||||
|
|
||||||
|
|
||||||
MX_LoRaWAN_Process();
|
MX_LoRaWAN_Process();
|
||||||
|
|
||||||
/* USER CODE BEGIN 3 */
|
/* USER CODE BEGIN 3 */
|
||||||
|
|
|
@ -30,11 +30,11 @@
|
||||||
#include "utilities_def.h"
|
#include "utilities_def.h"
|
||||||
#include "sys_debug.h"
|
#include "sys_debug.h"
|
||||||
#include "sys_sensors.h"
|
#include "sys_sensors.h"
|
||||||
|
|
||||||
|
/* USER CODE BEGIN Includes */
|
||||||
#ifdef STS_WS
|
#ifdef STS_WS
|
||||||
#include "sts_weight_scale.h"
|
#include "sts_weight_scale.h"
|
||||||
#endif
|
#endif
|
||||||
/* USER CODE BEGIN Includes */
|
|
||||||
|
|
||||||
/* USER CODE END Includes */
|
/* USER CODE END Includes */
|
||||||
|
|
||||||
/* External variables ---------------------------------------------------------*/
|
/* External variables ---------------------------------------------------------*/
|
||||||
|
|
|
@ -641,7 +641,6 @@ static void SendTxData(void)
|
||||||
AppData.Buffer[i++] = (uint8_t)(sts_sensor_data.weight_scale_value >> 8& 0xFF);
|
AppData.Buffer[i++] = (uint8_t)(sts_sensor_data.weight_scale_value >> 8& 0xFF);
|
||||||
AppData.Buffer[i++] = (uint8_t)(sts_sensor_data.weight_scale_value & 0xFF);
|
AppData.Buffer[i++] = (uint8_t)(sts_sensor_data.weight_scale_value & 0xFF);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
AppData.BufferSize = i;
|
AppData.BufferSize = i;
|
||||||
#endif /* CAYENNE_LPP */
|
#endif /* CAYENNE_LPP */
|
||||||
|
|
||||||
|
|
|
@ -94,10 +94,10 @@ extern "C" {
|
||||||
/*#define REGION_CN470*/
|
/*#define REGION_CN470*/
|
||||||
/*#define REGION_CN779*/
|
/*#define REGION_CN779*/
|
||||||
/*#define REGION_EU433*/
|
/*#define REGION_EU433*/
|
||||||
/*#define REGION_EU868*/
|
#define REGION_EU868
|
||||||
/*#define REGION_KR920*/
|
/*#define REGION_KR920*/
|
||||||
/*#define REGION_IN865*/
|
/*#define REGION_IN865*/
|
||||||
/*#define REGION_US915*/
|
#define REGION_US915
|
||||||
/*#define REGION_RU864*/
|
/*#define REGION_RU864*/
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
|
|
Loading…
Reference in New Issue