upload with servie mask control

This commit is contained in:
Yunhorn 2023-05-25 12:45:19 +08:00
parent 027267a32d
commit cfeb764946
1 changed files with 2 additions and 0 deletions

View File

@ -2044,6 +2044,8 @@ void STS_SENSOR_Upload_Message(uint8_t appDataPort, uint8_t appBufferSize, char
AppData.Port = appDataPort; AppData.Port = appDataPort;
AppData.BufferSize = (sts_service_mask >2?0:appBufferSize); AppData.BufferSize = (sts_service_mask >2?0:appBufferSize);
APP_LOG(TS_OFF, VLEVEL_L, "Service Mask = %d Buffer Size =%d \r\n", sts_service_mask, AppData.BufferSize);
if ((JoinLedTimer.IsRunning) && (LmHandlerJoinStatus() == LORAMAC_HANDLER_SET)) if ((JoinLedTimer.IsRunning) && (LmHandlerJoinStatus() == LORAMAC_HANDLER_SET))
{ {
UTIL_TIMER_Stop(&JoinLedTimer); UTIL_TIMER_Stop(&JoinLedTimer);