diff --git a/RepRapFirmware.ino b/RepRapFirmware.ino
index cf36732..35a9e37 100644
--- a/RepRapFirmware.ino
+++ b/RepRapFirmware.ino
@@ -69,7 +69,7 @@ void RepRap::Spin()
move->Spin();
heat->Spin();
gcodes->Spin();
- webserver->spin();
+ webserver->Spin();
}
void RepRap::Interrupt()
diff --git a/SD-image/www/control.php b/SD-image/www/control.php
index 739bf0b..592fe79 100644
--- a/SD-image/www/control.php
+++ b/SD-image/www/control.php
@@ -49,39 +49,39 @@
- |
- |
- |
- |
- |
- |
- |
- |
- |
+ |
+ |
+ |
+ |
+ |
+ |
+ |
+ |
+ |
- |
- |
- |
- |
- |
- |
- |
- |
- |
+ |
+ |
+ |
+ |
+ |
+ |
+ |
+ |
+ |
- |
- |
- |
- |
- |
- |
- |
- |
- |
+ |
+ |
+ |
+ |
+ |
+ |
+ |
+ |
+ |
@@ -92,39 +92,8 @@
function homea(){ window.location.href = "control.php?gcode=G28";}
- function homex(){ window.location.href = "control.php?gcode=G28%20X0";}
- function homey(){ window.location.href = "control.php?gcode=G28%20Y0";}
- function homez(){ window.location.href = "control.php?gcode=G28%20Z0";}
-
- function xp01mm(){ window.location.href = "control.php?gcode=G91%0AG1%20X0.1%0AG90";}
- function xp1mm(){ window.location.href = "control.php?gcode=G91%0AG1%20X1%0AG90";}
- function xp10mm(){ window.location.href = "control.php?gcode=G91%0AG1%20X10%0AG90";}
- function xp100mm(){ window.location.href = "control.php?gcode=G91%0AG1%20X100%0AG90";}
-
- function xm01mm(){ window.location.href = "control.php?gcode=G91%0AG1%20X-0.1%0AG90";}
- function xm1mm(){ window.location.href = "control.php?gcode=G91%0AG1%20X-1%0AG90";}
- function xm10mm(){ window.location.href = "control.php?gcode=G91%0AG1%20X10%0AG90";}
- function xm100mm(){ window.location.href = "control.php?gcode=G91%0AG1%20X100%0AG90";}
-
- function yp01mm(){ window.location.href = "control.php?gcode=G91%0AG1%20Y0.1%0AG90";}
- function yp1mm(){ window.location.href = "control.php?gcode=G91%0AG1%20Y1%0AG90";}
- function yp10mm(){ window.location.href = "control.php?gcode=G91%0AG1%20Y10%0AG90";}
- function yp100mm(){ window.location.href = "control.php?gcode=G91%0AG1%20Y100%0AG90";}
-
- function ym01mm(){ window.location.href = "control.php?gcode=G91%0AG1%20Y-0.1%0AG90";}
- function ym1mm(){ window.location.href = "control.php?gcode=G91%0AG1%20Y-1%0AG90";}
- function ym10mm(){ window.location.href = "control.php?gcode=G91%0AG1%20Y10%0AG90";}
- function ym100mm(){ window.location.href = "control.php?gcode=G91%0AG1%20Y100%0AG90";}
-
- function zp01mm(){ window.location.href = "control.php?gcode=G91%0AG1%20Z0.1%0AG90";}
- function zp1mm(){ window.location.href = "control.php?gcode=G91%0AG1%20Z1%0AG90";}
- function zp10mm(){ window.location.href = "control.php?gcode=G91%0AG1%20Z10%0AG90";}
- function zp100mm(){ window.location.href = "control.php?gcode=G91%0AG1%20Z100%0AG90";}
-
- function zm01mm(){ window.location.href = "control.php?gcode=G91%0AG1%20Z-0.1%0AG90";}
- function zm1mm(){ window.location.href = "control.php?gcode=G91%0AG1%20Z-1%0AG90";}
- function zm10mm(){ window.location.href = "control.php?gcode=G91%0AG1%20Z10%0AG90";}
- function zm100mm(){ window.location.href = "control.php?gcode=G91%0AG1%20Z100%0AG90";}
+ function home(axis){ window.location.href = "control.php?gcode=G28%20" + axis + "0";}
+ function move(axis, d){ window.location.href = "control.php?gcode=G91%0AG1%20" + axis + d + "%0AG90";}