chiark / gitweb /
adafruit-powerboost-common: PsuLedWindowsWindows, fix location
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Fri, 3 Dec 2021 23:23:43 +0000 (23:23 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Fri, 3 Dec 2021 23:23:43 +0000 (23:23 +0000)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
adafruit-powerboost-common.scad

index 86f62639ad1f6cceb63217d4930c094fb7cf6816..b62643ac8ba297a2ad25efca633c980c1d2e860a 100644 (file)
@@ -193,7 +193,8 @@ module PsuLedWindowsPlan(){
 }
 
 module PsuLedWindowsWindows(ceil){
-  linextr(0, psu_initial_layer_thick)
+  translate([0,0, -psu_z - ceil])
+    linextr(0, psu_initial_layer_thick)
     offset(delta=psu_window_ledge)
     PsuLedWindowsPlan();
 }
@@ -325,7 +326,7 @@ module PsuMountTestFullText() { ////toplevel
 }
 module PsuMountTestFullWindows() { ////toplevel
   PsuMountTestFullLayerFrame(1);
-  translate([0, psu_y, 0])
+  translate([0, psu_y, psu_z + psu_test_ceil])
     PsuLedWindowsWindows(psu_test_ceil);
 }