diff --git a/LoRaWAN/App/lora_app.c b/LoRaWAN/App/lora_app.c index 2cc1f37..9dd3174 100644 --- a/LoRaWAN/App/lora_app.c +++ b/LoRaWAN/App/lora_app.c @@ -952,7 +952,7 @@ void STS_SENSOR_Upload_Message(uint8_t appDataPort, uint8_t appBufferSize, uint8 LmHandlerErrorStatus_t status = LORAMAC_HANDLER_ERROR; UTIL_TIMER_Time_t nextTxIn = 0; - if (LmHandlerIsBusy() == false) + //if (LmHandlerIsBusy() == false) { for (uint8_t i=0;i>4)&0x0f, (fhmos_gesture.cube[i]&0x0f)); } fhmos_gesture.head_level = 0xff&((sts_sensor_install_height - sts_fall_head_position)/10); // head level from floor in CM fhmos_gesture.head_xy = head_xy&0xff; + + + printf("\r\n Head level =%4d cm, Head_xy=%d X:Y = %2d : %2d \r\n", fhmos_gesture.head_level, head_xy, (head_xy%8), (head_xy/8)); + #if 0 for (i=0; i<64; i++) { @@ -288,7 +302,7 @@ void sts_generate_fall_gesture_map(void) #endif sts_fhmos_bitmap_pending = 1; - printf("\r\n Fall Gesture bitmap Generated\r\n"); + APP_LOG(TS_OFF, VLEVEL_M, "\r\n Fall Gesture bitmap Generated\r\n"); } uint16_t MX_TOF_Ranging_Process(void) {