Skip to content

Commit b75efe7

Browse files
committed
DebugLog: add shadow header to disable logging
The real DebugLog library is currently not compatible with the UNO Q. Until a fix is implemented, this commit adds a shadow header that disables all logging and assertions. Include this only on the UNO Q artifact. Signed-off-by: Luca Burelli <l.burelli@arduino.cc>
1 parent a460315 commit b75efe7

2 files changed

Lines changed: 26 additions & 0 deletions

File tree

cores/arduino/DebugLog.h

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
/*
2+
* Copyright (c) Arduino s.r.l. and/or its affiliated companies
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
#pragma once
8+
9+
/*
10+
* This header is used to forcibly disable logging and assertions in the
11+
* MsgPack library. It is here to shadow the real DebugLog library available in
12+
* the index, which is currently not compatible with the latest boards.
13+
*/
14+
15+
#define LOG_ERROR(...) ((void)0)
16+
#define LOG_WARN(...) ((void)0)
17+
#define LOG_INFO(...) ((void)0)
18+
#define LOG_DEBUG(...) ((void)0)
19+
#define LOG_TRACE(...) ((void)0)
20+
#define ASSERT(...) ((void)0)
21+
#define ASSERTM(...) ((void)0)
22+
#define PRINT(...) ((void)0)
23+
#define PRINTLN(...) ((void)0)

extra/artifacts/zephyr_unoq.only

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,7 @@
44
# Files listed here are included by this package only, and automatically
55
# excluded by all other artifacts.
66

7+
# Shadow the actual DebugLog library which does not work on the UNO Q
8+
cores/arduino/DebugLog.h
9+
710
libraries/Arduino_LED_Matrix/

0 commit comments

Comments
 (0)