Przeglądaj źródła

More LPC P-string macros

Scott Lahteine 3 lat temu
rodzic
commit
b04914fb72
1 zmienionych plików z 8 dodań i 0 usunięć
  1. 8
    0
      Marlin/src/HAL/LPC1768/HAL.h

+ 8
- 0
Marlin/src/HAL/LPC1768/HAL.h Wyświetl plik

@@ -212,3 +212,11 @@ inline void HAL_reboot() {}  // reboot the board or restart the bootloader
212 212
 #ifndef strcmp_P
213 213
   #define strcmp_P(a, b) strcmp((a), (b))
214 214
 #endif
215
+
216
+#ifndef strcat_P
217
+  #define strcat_P(a, b) strcat((a), (b))
218
+#endif
219
+
220
+#ifndef strcpy_P
221
+  #define strcpy_P(a, b) strcpy((a), (b))
222
+#endif

Ładowanie…
Anuluj
Zapisz