瀏覽代碼

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

Loading…
取消
儲存