diff --git a/MicroView.cpp b/MicroView.cpp index 950e99c..1e394fd 100644 --- a/MicroView.cpp +++ b/MicroView.cpp @@ -1472,22 +1472,22 @@ MicroViewSlider::MicroViewSlider(uint8_t newx, uint8_t newy, int16_t min, int16_ MicroViewSlider::MicroViewSlider(uint8_t newx, uint8_t newy, int16_t min, int16_t max, uint8_t sty):MicroViewWidget(newx, newy, min, max) { switch(sty){ - case WIDGETSTYLE1: - style=1; - totalTicks=60; - break; - case WIDGETSTYLE2: - style=2; - totalTicks=20; - break; - case WIDGETSTYLE3: - style=3; - totalTicks=40; - break; - default: - style=0; - totalTicks=30; - break; + case WIDGETSTYLE1: + style=1; + totalTicks=60; + break; + case WIDGETSTYLE2: + style=2; + totalTicks=20; + break; + case WIDGETSTYLE3: + style=3; + totalTicks=40; + break; + default: + style=0; + totalTicks=30; + break; } prevValue=getMinValue(); @@ -1502,35 +1502,35 @@ MicroViewSlider::MicroViewSlider(uint8_t newx, uint8_t newy, int16_t min, int16_ */ void MicroViewSlider::drawFace() { uint8_t offsetX, offsetY, endOffset; - offsetX=getX(); - offsetY=getY(); + offsetX=getX(); + offsetY=getY(); //Horizontal styles, style 0 or 1 - if (style==0 || style==1) { - endOffset = offsetX + totalTicks + 2; + if (style==0 || style==1) { + endOffset = offsetX + totalTicks + 2; // Draw minor ticks - for (uint8_t i=offsetX+1; i0) - uView.setCursor(offsetX-valOffset, offsetY+10); + uView.setCursor(offsetX-valOffset, offsetY+10); else - uView.setCursor(offsetX-valOffset, offsetY+11); + uView.setCursor(offsetX-valOffset, offsetY+11); uView.print(strBuffer); }