OpenGarage Forums OpenGarage Firmware v1.0.8 compile error (with pin_switch)

This topic contains 2 replies, has 2 voices, and was last updated by  Gompka 1 year, 8 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #959

    Gompka
    Participant

    Having a compile error, listed below, any ideas?

    Arduino: 1.8.5 (Windows 10), Board: “Generic ESP8266 Module, 80 MHz, 40MHz, DIO, 115200, 4M (1M SPIFFS), ck, Disabled, None”

    In file included from C:\Users\David\Downloads\OpenGarage 1.0.8\OpenGarage\examples\ogMainArduino\ogMainArduino.ino:30:0:

    C:\Users\David\Downloads\arduino_og\portable\sketchbook\libraries\OpenGarage/OpenGarage.h: In static member function ‘static unsigned char OpenGarage::get_switch()’:

    C:\Users\David\Downloads\arduino_og\portable\sketchbook\libraries\OpenGarage/OpenGarage.h:60:49: error: ‘PIN_SWITCH’ was not declared in this scope

    static byte get_switch() { return digitalRead(PIN_SWITCH); }

    ^

    exit status 1
    Error compiling for board Generic ESP8266 Module.

    This report would have more information with
    “Show verbose output during compilation”
    option enabled in File -> Preferences.

    #963

    Ray
    Keymaster

    I don’t really know. PIN_SWITCH is clearly defined in defines.h. Is it possible that your defines.h is not at version 1.0.8?

    #966

    Gompka
    Participant

    Ray, not sure what fixed it, but i just reinstalled the arduino ide and all libraries and did everything all over again. No more error and compiled correctly, probably user error on my part somehow.

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.

OpenGarage Forums OpenGarage Firmware v1.0.8 compile error (with pin_switch)