ソースを参照

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

読み込み中…
キャンセル
保存