---- add AppLEDstate
This commit is contained in:
parent
163837de24
commit
2d5ff6fe3d
|
@ -78,6 +78,7 @@ void Error_Handler(void);
|
|||
|
||||
#define LED1_ON HAL_GPIO_WritePin(LED1_GPIO_Port, LED1_Pin, GPIO_PIN_SET )
|
||||
#define LED1_OFF HAL_GPIO_WritePin(LED1_GPIO_Port, LED1_Pin, GPIO_PIN_RESET)
|
||||
#define LED1_STATE HAL_GPIO_ReadPin(LED1_GPIO_Port, LED1_Pin)
|
||||
#define LED1_TOGGLE HAL_GPIO_TogglePin(LED1_GPIO_Port, LED1_Pin)
|
||||
#define MEMS_POWER_Pin GPIO_PIN_4 // PMU_ENABLE
|
||||
#define MEMS_POWER_GPIO_Port GPIOB // PMU_ENABLE
|
||||
|
|
|
@ -35,6 +35,7 @@
|
|||
#include "CayenneLpp.h"
|
||||
#include "sys_sensors.h"
|
||||
#include "flash_if.h"
|
||||
#include "main.h"
|
||||
#ifdef CLOCK_SYNC
|
||||
#include "LmhpClockSync.h"
|
||||
#endif
|
||||
|
@ -913,6 +914,8 @@ static void SendTxData(void)
|
|||
AppData.Port = (uint8_t)YUNHORN_STS_O7_LORA_APP_DATA_PORT;
|
||||
}
|
||||
|
||||
AppLedStateOn = LED1_STATE;
|
||||
|
||||
if ((heart_beat_timer != 0L)) // sensor data OVERWRITE heart-beat message, 2024-05-12
|
||||
{
|
||||
heart_beat_timer=0;
|
||||
|
|
Loading…
Reference in New Issue