minor changes

This commit is contained in:
Yunhorn 2024-04-09 09:10:00 +08:00
parent 15f9ebc728
commit da595f2e01
2 changed files with 3 additions and 3 deletions

View File

@ -136,7 +136,7 @@ void STS_YunhornSTSEventRFAC_Process(void)
void STS_FallDetection_LampBarProcess(void)
{
uint8_t buf[32]={0x0};
char buf[32]={0x0};
uint8_t i=0;
switch (sts_fall_rising_detected_result)
{
@ -182,7 +182,7 @@ void STS_FallDetection_LampBarProcess(void)
APP_LOG(TS_OFF, VLEVEL_L, "\r\n <<<<<<<<<<<<<< Fall Rise state=%d, send buf size = %d \r\n",
sts_fall_rising_detected_result, i )
STS_SENSOR_Upload_Message((LORAWAN_USER_APP_PORT+2), i, (char*)buf);
STS_SENSOR_Upload_Message((LORAWAN_USER_APP_PORT+2), i, buf);
sts_fall_rising_detected_result = STS_PRESENCE_NONE;
@ -463,7 +463,7 @@ uint8_t STS_SENSOR_MEMS_Get_ID(uint8_t *devID)
{
uint8_t scanned_id[2] = {0x0,0x0};
#ifdef YUNHORN_STS_O6_ENABLED
#ifdef YUNHORN_STS_O7_ENABLED
if (hal_test_spi_read_chipid(scanned_id))
{
devID[0] = scanned_id[0];

Binary file not shown.