Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Log打印问题 #197

Open
zpf123233 opened this issue Aug 24, 2024 · 1 comment
Open

Log打印问题 #197

zpf123233 opened this issue Aug 24, 2024 · 1 comment

Comments

@zpf123233
Copy link

log只能打印一次是什么原因?

void uartLogWrite(char *buffer, short len);

Log uartLog = {
.write = uartLogWrite,
.active = LOG_ENABLE,
.level = LOG_INFO
};

void uartLogWrite(char *buffer, short len)
{
if (uartLog.shell)
{
shellWriteEndLine(uartLog.shell, buffer, len);
}
}

int errorCode = 0;
logInfo("This is log test : %d",errorCode);
errorCode++;

@NevermindZZT
Copy link
Owner

这个信息太少了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants