1
0
mirror of https://github.com/NevermindZZT/letter-shell.git synced 2025-01-21 10:02:54 +08:00

Update log.c

This commit is contained in:
Letter 2020-10-30 15:09:57 +08:00 committed by GitHub
parent 6019d58b04
commit 0719512b67
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -33,13 +33,13 @@ static char logBuffer[LOG_BUFFER_SIZE];
*/
void logRegister(Log *log, Shell *shell)
{
#if SHELL_USING_COMPANION == 1
if (shell)
{
log->shell = shell;
#if SHELL_USING_COMPANION == 1
shellCompanionAdd(shell, SHELL_COMPANION_ID_LOG, log);
#endif
}
#endif
for (short i = 0; i < LOG_MAX_NUMBER; i++)
{
if (logList[i] == 0)