Skip to content

Commit

Permalink
Merge pull request #3 from swk/nzb-issue2
Browse files Browse the repository at this point in the history
Address some compiliation issues with #define MECHADUINO_HARDWARE set…
  • Loading branch information
Misfittech committed Dec 20, 2016
2 parents 9639027 + e9a4dfc commit 3bb2471
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 5 additions & 1 deletion firmware/stepper_nano_zero/nzs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,11 @@ int menuTestCal(int argc, char *argv[])
x=x-(y*100);
x=abs(x);
sprintf(str, "%d.%02d deg",y,x);
#ifndef DISABLE_LCD
Lcd.lcdShow("Cal Error", str,"");
LOG("Calibration error %s",str);
#endif
LOG("Calibration error %s",str);
#ifndef MECHADUINO_HARDWARE
while(digitalRead(PIN_SW3)==1)
{
//wait for button press
Expand All @@ -44,6 +47,7 @@ int menuTestCal(int argc, char *argv[])
{
//wait for button release
}
#endif
}

static options_t stepOptions[] {
Expand Down
4 changes: 2 additions & 2 deletions firmware/stepper_nano_zero/nzs_lcd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#include <Wire.h>



#ifndef DISABLE_LCD
void NZS_LCD::begin(StepperCtrl *ptrsCtrl)
{
pinMode(PIN_SW1, INPUT_PULLUP);
Expand Down Expand Up @@ -244,7 +244,7 @@ void __attribute__((optimize("Ofast")))NZS_LCD::process(void)
buttonState &= ~0x04;
}
}

#endif
/*
//does the LCD menu system
void StepperCtrl::menu(void)
Expand Down

0 comments on commit 3bb2471

Please sign in to comment.