Revision 0278542c

View differences:

core/src/aos_main.cpp
1108 1108

  
1109 1109
    aosDbgPrintf("receiving current date/time...\t");
1110 1110
    // receive message
1111
#if (AMIROOS_CFG_DBG == true)
1112
    // increase timeout in debug mode due to additional delays introduced by the many prinf() calls
1113
    if (canReceiveTimeout(&MODULE_HAL_CAN, CAN_ANY_MAILBOX, &frame, chTimeUS2I(10 * AOS_SYSTEM_SSSP_TIMEOUT)) == MSG_OK) {
1114
#else
1111 1115
    if (canReceiveTimeout(&MODULE_HAL_CAN, CAN_ANY_MAILBOX, &frame, chTimeUS2I(AOS_SYSTEM_SSSP_TIMEOUT)) == MSG_OK) {
1116
#endif
1112 1117
      // validate message
1113 1118
      if (frame.DLC == 8 &&
1114 1119
          frame.RTR == CAN_RTR_DATA &&

Also available in: Unified diff