Skip to content

Commit 428400e

Browse files
committed
- fixed sw/hw serial compiler warning
1 parent fa8707c commit 428400e

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

common/utils/SerialDebug.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,16 @@
99
#define SERIALDEBUG_H_
1010

1111
#include <stdio.h>
12+
#include <string.h>
1213

1314
#include "MemoryFree.h"
1415
#include "AVRString.h"
1516

1617
#define SERIALDEBUG_DEFAULT_BAUD 57600 // default baud rate when calling SerialDebugInit()
17-
#define __FILENAME__ (strrchr(__FILE__, '/') ? strrchr(__FILE__, '/') + 1 : __FILE__) // show file name only
1818

19+
#ifndef __FILENAME__
20+
#define __FILENAME__ (strrchr(__FILE__, '/') ? strrchr(__FILE__, '/') + 1 : __FILE__) // show file name only
21+
#endif
1922

2023
#ifndef LOG
2124
#ifdef DEBUG

common/utils/SoftSerial.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
#define UTILS_SOFTSERIAL_H_
1010

1111
#include <stdarg.h>
12+
#include <string.h>
1213
#include "MemoryFree.h"
1314

1415
// TX pin config

0 commit comments

Comments
 (0)