Ver Fonte

modified palgtool.pl to include avr/pgmspace.h to language_all

PavelSindler há 7 anos atrás
pai
commit
baeeb733e9
3 ficheiros alterados com 4 adições e 2 exclusões
  1. 2 1
      Firmware/langtool.pl
  2. 1 1
      Firmware/language_all.cpp
  3. 1 0
      Firmware/language_all.h

+ 2 - 1
Firmware/langtool.pl

@@ -180,6 +180,7 @@ print $fh <<END
 #ifndef LANGUAGE_ALL_H
 #define LANGUAGE_ALL_H
 
+#include <avr/pgmspace.h>
 // Language indices into their particular symbol tables.
 END
 ;
@@ -242,7 +243,7 @@ $filename = 'language_all.cpp';
 open($fh, '>', $filename) or die "Could not open file '$filename' $!";
 
 print $fh <<'END'
-#include <avr/pgmspace.h>
+
 #include "Configuration_prusa.h"
 #include "language_all.h"
 

+ 1 - 1
Firmware/language_all.cpp

@@ -1,4 +1,4 @@
-#include <avr/pgmspace.h>
+
 #include "Configuration_prusa.h"
 #include "language_all.h"
 

+ 1 - 0
Firmware/language_all.h

@@ -1,6 +1,7 @@
 #ifndef LANGUAGE_ALL_H
 #define LANGUAGE_ALL_H
 
+#include <avr/pgmspace.h>
 // Language indices into their particular symbol tables.
 #define LANG_ID_EN 0
 #define LANG_ID_CZ 1