Close



Results 1 to 10 of 757

Threaded View

  1. #11
    Super Moderator RobH2's Avatar
    Join Date
    Nov 2013
    Location
    Baltimore, MD
    Posts
    897
    Add RobH2 on Thingiverse
    Still getting an error when I compile. From Post #75 I'm not real sure where to put this:

    In ConfigurationStore.h:
    #ifdef EEPROM_SETTINGS
    void Invalidate_EEPROM_Settings(); // Roxy routine to guarantee we are using default firmware values
    void Config_StoreSettings();
    void Config_RetrieveSettings();
    #else
    FORCE_INLINE void Config_StoreSettings() {}
    FORCE_INLINE void Config_RetrieveSettings() { Config_ResetDefault(); Config_PrintSettings(); }
    #endif


    I put it after:

    29: #define EEPROM_READ_VAR(pos, value) _EEPROM_readData(pos, (uint8_t*)&value, sizeof(value))

    Here's the error:

    Arduino: 1.5.6-r2 (Windows 7), Board: "Arduino Mega or Mega 2560, ATmega2560 (Mega 2560)"

    ConfigurationStore.cpp: In function 'void Invalidate_EEPROM_Settings()':
    ConfigurationStore.cpp:35: error: 'EEPROM_OFFSET' was not declared in this scope

    Edit: I put the snippet for ConfigurationStore.cpp at the end after everything else and it seems to compile. So for now disregard this post.
    Last edited by RobH2; 08-05-2014 at 08:47 PM.
    Bambu P1S/AMS
    NVision4D http://nvision4d.com

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •