浏览代码

vsnprintf patch redux (#14725)

Marcio Teixeira 5 年前
父节点
当前提交
1c3df51f87
共有 1 个文件被更改,包括 4 次插入4 次删除
  1. 4
    4
      Marlin/src/HAL/shared/Marduino.h

+ 4
- 4
Marlin/src/HAL/shared/Marduino.h 查看文件

@@ -41,10 +41,6 @@
41 41
 #undef sq
42 42
 #define sq(x) ((x)*(x))
43 43
 
44
-#ifndef vsnprintf_P
45
-  #define vsnprintf_P vsnprintf
46
-#endif
47
-
48 44
 #ifndef SBI
49 45
   #define SBI(A,B) (A |= (1 << (B)))
50 46
 #endif
@@ -58,6 +54,10 @@
58 54
     inline const char* strchr_P(const char *s, int c) { return strchr(s,c); }
59 55
     //#define strchr_P(s,c) strchr(s,c)
60 56
   #endif
57
+
58
+  #ifndef vsnprintf_P
59
+    #define vsnprintf_P vsnprintf
60
+  #endif
61 61
 #endif
62 62
 
63 63
 // Restart causes

正在加载...
取消
保存