Skip to content

Commit

Permalink
v2.0.4 bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
mrWheel committed May 25, 2023
1 parent 916c10d commit 1429f6c
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions library/YAPPgenerator_v20.scad
Original file line number Diff line number Diff line change
Expand Up @@ -3244,16 +3244,18 @@ if (!printBaseShell && !printLidShell && printSwitchExtenders)
pcbTop2Lid= (baseWallHeight+lidWallHeight)-(standoffHeight+pcbThickness);
boxHeight = baseWallHeight+lidWallHeight;
extHeight = boxHeight-(standoffHeight+pcbThickness)-swHeight-(buttonPlateThickness-0.5);
xOff = max(cLength, cWidth);

echo("postProcess(A):", extHeight=extHeight);
echo("postProcess(A):", extHeight=extHeight, xOff=xOff);

if (isTrue(yappCircle, button))
printSwitchExtender(true, cLength, cWidth, cAbvLid, pDiam, extHeight, buttonPlateThickness
, boxHeight, -10, (pcbLength*1)+(i*(10+cLength)));
else printSwitchExtender(false, cLength, cWidth, cAbvLid, pDiam, extHeight, buttonPlateThickness
, boxHeight, -10, (pcbLength*1)+(i*(10+cLength)));

printSwitchPlate(pDiam, cLength, buttonPlateThickness, (pcbLength*1)+(i*(10+cLength)));
//--printSwitchPlate(pDiam, cLength, buttonPlateThickness, (pcbLength*1)+(i*(10+cLength)));
printSwitchPlate(pDiam, xOff, buttonPlateThickness, (pcbLength*1)+(i*(10+cLength)));

} //-- for ...
} //-- translate
Expand Down Expand Up @@ -3299,9 +3301,10 @@ if (!showSideBySide && printLidShell && printSwitchExtenders)
posX=xPos+wallThickness+paddingBack;
posY=(yPos+wallThickness+paddingLeft);
posZ=(baseWallHeight+basePlaneThickness)+(lidWallHeight+lidPlaneThickness)+button[4];
xOff = max(cLength, cWidth);

//-debug-echo("BB:", xPos=xPos, wallThickness=wallThickness,paddingFront=paddingFront, paddingBack=paddingBack, posX=posX);
echo("postProcess(B):", extHeight=extHeight);
echo("postProcess(B):", extHeight=extHeight, xOff=xOff);

translate([posX, posY, posZ])
{
Expand Down

0 comments on commit 1429f6c

Please sign in to comment.