Revision 23437e98 core/src/aos_shell.c

View differences:

core/src/aos_shell.c
323 323
               (uint16_t)(uptime % MICROSECONDS_PER_SECOND / MICROSECONDS_PER_MILLISECOND),
324 324
               (uint16_t)(uptime % MICROSECONDS_PER_MILLISECOND / MICROSECONDS_PER_MICROSECOND));
325 325
    }
326
#if (HAL_USE_RTC == TRUE)
326 327
    else if ((shell->config & (AOS_SHELL_CONFIG_PROMPT_UPTIME | AOS_SHELL_CONFIG_PROMPT_DATETIME)) == AOS_SHELL_CONFIG_PROMPT_DATETIME) {
327 328
      // get current RTC time
328 329
      struct tm dt;
......
335 336
               dt.tm_min,
336 337
               dt.tm_sec);
337 338
    }
339
#endif /* HAL_USE_RTC == TRUE */
338 340
    else {
339 341
      aosDbgAssert(false);
340 342
    }

Also available in: Unified diff