chiark / gitweb /
refresh (create temporary patch)
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Wed, 8 Aug 2012 16:55:40 +0000 (17:55 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Wed, 8 Aug 2012 16:55:40 +0000 (17:55 +0100)
meta
patches/refresh-temp [new file with mode: 0644]

diff --git a/meta b/meta
index f37a094e59b228c83499f0ffd3e17fd8e62daa6a..829007cd0d5db15f9a29fca37ae8405e4761780f 100644 (file)
--- a/meta
+++ b/meta
@@ -1,10 +1,11 @@
 Version: 1
-Previous: 75fae55020590accef02cae38a90e0707f18e04e
-Head: 544900812e955cd117d08b5871408ad6ed14f7fd
+Previous: 2733b22453dd015b0590f7064e88ea690e46f9b9
+Head: 059d0c28276542276cd5725c1a70d362487fbb5a
 Applied:
   makefile-support-v-1: 59de9f09a248a5af04203378018ff95f86ff092d
   m206-always-use-homing-homeing: 704568f265fbb370658a153f8240239dd776f5cc
   eeprom-provide-smaller-code-fo: 544900812e955cd117d08b5871408ad6ed14f7fd
+  refresh-temp: 059d0c28276542276cd5725c1a70d362487fbb5a
 Unapplied:
   m206-save-values-in-eeprom: a7ff3675bdb6149f684e0e3a15c1a594ea2db815
 Hidden:
diff --git a/patches/refresh-temp b/patches/refresh-temp
new file mode 100644 (file)
index 0000000..f7d99a9
--- /dev/null
@@ -0,0 +1,124 @@
+Bottom: 5fa92f577560a8def7ed5e4eb27c03563022c045
+Top:    f71276ce0bb76f5c8c5c3c6cdb0be4e72eb00f48
+Author: Ian Jackson <ijackson@chiark.greenend.org.uk>
+Date:   2012-08-08 17:55:40 +0100
+
+Refresh of eeprom-provide-smaller-code-fo
+
+---
+
+diff --git a/Marlin/EEPROMwrite.h b/Marlin/EEPROMwrite.h
+index 96791c7..96e2ec9 100644
+--- a/Marlin/EEPROMwrite.h
++++ b/Marlin/EEPROMwrite.h
+@@ -75,34 +75,25 @@ inline void EEPROM_StoreSettings()
+ }
+-static void serial_echopair_double(const PROGMEM char *s, double v) {
+-      serialprintPGM(s);
+-      SERIAL_ECHO(v);
+-}
+-
+-#define SERIAL_ECHOPAIR_DOUBLE(s,v) \
+-  ((void)(&(v) == &acceleration), /* type check */ \
+-   serial_echopair_double(PSTR(s),(v)))
+-
+ inline void EEPROM_printSettings()
+ {  // if def=true, the default values will be used
+   #ifdef EEPROM_SETTINGS  
+       SERIAL_ECHO_START;
+       SERIAL_ECHOLNPGM("Steps per unit:");
+       SERIAL_ECHO_START;
+-      SERIAL_ECHOPAIR_DOUBLE("  M92 X",axis_steps_per_unit[0]);
+-      SERIAL_ECHOPAIR_DOUBLE(" Y",axis_steps_per_unit[1]);
+-      SERIAL_ECHOPAIR_DOUBLE(" Z",axis_steps_per_unit[2]);
+-      SERIAL_ECHOPAIR_DOUBLE(" E",axis_steps_per_unit[3]);
++      SERIAL_ECHOPAIR("  M92 X",axis_steps_per_unit[0]);
++      SERIAL_ECHOPAIR(" Y",axis_steps_per_unit[1]);
++      SERIAL_ECHOPAIR(" Z",axis_steps_per_unit[2]);
++      SERIAL_ECHOPAIR(" E",axis_steps_per_unit[3]);
+       SERIAL_ECHOLN("");
+       
+     SERIAL_ECHO_START;
+       SERIAL_ECHOLNPGM("Maximum feedrates (mm/s):");
+       SERIAL_ECHO_START;
+-      SERIAL_ECHOPAIR_DOUBLE("  M203 X",max_feedrate[0]);
+-      SERIAL_ECHOPAIR_DOUBLE(" Y",max_feedrate[1] ); 
+-      SERIAL_ECHOPAIR_DOUBLE(" Z", max_feedrate[2] ); 
+-      SERIAL_ECHOPAIR_DOUBLE(" E", max_feedrate[3]);
++      SERIAL_ECHOPAIR("  M203 X",max_feedrate[0]);
++      SERIAL_ECHOPAIR(" Y",max_feedrate[1] ); 
++      SERIAL_ECHOPAIR(" Z", max_feedrate[2] ); 
++      SERIAL_ECHOPAIR(" E", max_feedrate[3]);
+       SERIAL_ECHOLN("");
+     SERIAL_ECHO_START;
+       SERIAL_ECHOLNPGM("Maximum Acceleration (mm/s2):");
+@@ -115,24 +106,24 @@ inline void EEPROM_printSettings()
+     SERIAL_ECHO_START;
+       SERIAL_ECHOLNPGM("Acceleration: S=acceleration, T=retract acceleration");
+       SERIAL_ECHO_START;
+-      SERIAL_ECHOPAIR_DOUBLE("  M204 S",acceleration ); 
+-      SERIAL_ECHOPAIR_DOUBLE(" T" ,retract_acceleration);
++      SERIAL_ECHOPAIR("  M204 S",acceleration ); 
++      SERIAL_ECHOPAIR(" T" ,retract_acceleration);
+       SERIAL_ECHOLN("");
+     SERIAL_ECHO_START;
+       SERIAL_ECHOLNPGM("Advanced variables: S=Min feedrate (mm/s), T=Min travel feedrate (mm/s), B=minimum segment time (ms), X=maximum xY jerk (mm/s),  Z=maximum Z jerk (mm/s)");
+       SERIAL_ECHO_START;
+-      SERIAL_ECHOPAIR_DOUBLE("  M205 S",minimumfeedrate ); 
+-      SERIAL_ECHOPAIR_DOUBLE(" T" ,mintravelfeedrate ); 
++      SERIAL_ECHOPAIR("  M205 S",minimumfeedrate ); 
++      SERIAL_ECHOPAIR(" T" ,mintravelfeedrate ); 
+       SERIAL_ECHOPAIR(" B" ,minsegmenttime ); 
+-      SERIAL_ECHOPAIR_DOUBLE(" X" ,max_xy_jerk ); 
+-      SERIAL_ECHOPAIR_DOUBLE(" Z" ,max_z_jerk);
+-      SERIAL_ECHOPAIR_DOUBLE(" E" ,max_e_jerk);
++      SERIAL_ECHOPAIR(" X" ,max_xy_jerk ); 
++      SERIAL_ECHOPAIR(" Z" ,max_z_jerk);
++      SERIAL_ECHOPAIR(" E" ,max_e_jerk);
+       SERIAL_ECHOLN(""); 
+     #ifdef PIDTEMP
+       SERIAL_ECHO_START;
+       SERIAL_ECHOLNPGM("PID settings:");
+       SERIAL_ECHO_START;
+-      SERIAL_ECHOPAIR_DOUBLE("   M301 P",Kp); 
++      SERIAL_ECHOPAIR("   M301 P",Kp); 
+       SERIAL_ECHOPAIR(" I" ,Ki/PID_dT); 
+       SERIAL_ECHOPAIR(" D" ,Kd*PID_dT);
+       SERIAL_ECHOLN(""); 
+diff --git a/Marlin/Marlin.h b/Marlin/Marlin.h
+index c8115af..a78d2ee 100644
+--- a/Marlin/Marlin.h
++++ b/Marlin/Marlin.h
+@@ -84,7 +84,11 @@ const char echomagic[] PROGMEM ="echo:";
+ #define SERIAL_ECHOLN(x) SERIAL_PROTOCOLLN(x)
+ #define SERIAL_ECHOLNPGM(x) SERIAL_PROTOCOLLNPGM(x)
+-#define SERIAL_ECHOPAIR(name,value) {SERIAL_ECHOPGM(name);SERIAL_ECHO(value);}
++#define SERIAL_ECHOPAIR(name,value) (serial_echopair(PSTR(name),(value)))
++
++void serial_echopair(const PROGMEM char *s, float v);
++void serial_echopair(const PROGMEM char *s, double v);
++void serial_echopair(const PROGMEM char *s, unsigned long v);
+ //things to write to serial from Programmemory. saves 400 to 2k of RAM.
+diff --git a/Marlin/Marlin.pde b/Marlin/Marlin.pde
+index 9f8e98c..d0c8d79 100644
+--- a/Marlin/Marlin.pde
++++ b/Marlin/Marlin.pde
+@@ -200,6 +200,13 @@ bool Stopped=false;
+ void get_arc_coordinates();
++void serial_echopair(const PROGMEM char *s, float v)
++    { serialprintPGM(s); SERIAL_ECHO(v); }
++void serial_echopair(const PROGMEM char *s, double v)
++    { serialprintPGM(s); SERIAL_ECHO(v); }
++void serial_echopair(const PROGMEM char *s, unsigned long v)
++    { serialprintPGM(s); SERIAL_ECHO(v); }
++
+ extern "C"{
+   extern unsigned int __bss_end;
+   extern unsigned int __heap_start;