// printf("HandleTextData called with num: %d, data[0]: %s\n", num, data[0].c_str());
char tempBuf[MAX_BUF_SIZE] = {0};
-#if 0
- for (uint16_t i = 0; i < num; ++i)
- {
- printf("data[%d]: %s\n", i, data[i].c_str());
- }
-#endif
+
int ret;
switch (num)
{
ret = snprintf_s(tempBuf, MAX_BUF_SIZE, MAX_BUF_SIZE - 1, text_,
data[0].c_str(), "年", data[1].c_str(), "月", data[2].c_str(), "日");
break;
+ case 4: /*8月7号 星期三*/
+ ret = snprintf_s(tempBuf, MAX_BUF_SIZE, MAX_BUF_SIZE - 1, text_,
+ data[0].c_str(), data[1].c_str(), data[2].c_str());
+ break;
default:
GRAPHIC_LOGE("Invalid num: %d. Max size is 3.\n", num);
return;