Avoid compile error when debug port unspecified

Fixes #23
parent ac867d71
......@@ -24,7 +24,9 @@ extern void setup();
extern void loop();
extern "C" int main() {
#if defined DEBUG_RP2040_PORT
DEBUG_RP2040_PORT.begin();
#endif
setup();
while (1) {
loop();
......@@ -59,7 +61,11 @@ extern "C" int main() {
extern "C" int errno;
extern "C" ssize_t _write(int fd, const void *buf, size_t count) {
#if defined DEBUG_RP2040_PORT
return DEBUG_RP2040_PORT.write((const char *)buf, count);
#else
return 0;
#endif
}
extern "C" int _chown (const char *path, uid_t owner, gid_t group) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment