diff --git a/libraries/AP_EEProm/AP_EEProm.cpp b/libraries/AP_EEProm/AP_EEProm.cpp index bca9968eaf..33fca0dce2 100644 --- a/libraries/AP_EEProm/AP_EEProm.cpp +++ b/libraries/AP_EEProm/AP_EEProm.cpp @@ -1,5 +1,5 @@ /* - * AP_EEProm.h + * AP_EEProm.cpp * Copyright (C) James Goppert 2010 * * This file is free software: you can redistribute it and/or modify it diff --git a/libraries/AP_EEProm/AP_EEProm.h b/libraries/AP_EEProm/AP_EEProm.h index a93669783a..4f9e733536 100644 --- a/libraries/AP_EEProm/AP_EEProm.h +++ b/libraries/AP_EEProm/AP_EEProm.h @@ -85,7 +85,7 @@ protected: /** * The main EEProm Registry class. */ -class AP_EEPromRegistry : public AP_Vector +class AP_EEPromRegistry : public Vector { public: diff --git a/libraries/AP_EEProm/examples/AP_EEProm/AP_EEProm.pde b/libraries/AP_EEProm/examples/AP_EEProm/AP_EEProm.pde index 3a807d8955..d8ee1243e3 100644 --- a/libraries/AP_EEProm/examples/AP_EEProm/AP_EEProm.pde +++ b/libraries/AP_EEProm/examples/AP_EEProm/AP_EEProm.pde @@ -38,15 +38,15 @@ void loop() Serial.printf_P(PSTR("\nvar.getId(): %d\n"), id); delay(2000); - Serial.printf_P(PSTR("\neepromRegistry(id)->getEntry(): %f\n"), eepromRegistry(id)->getEntry()); + Serial.printf_P(PSTR("\neepromRegistry(id)->getEntry(): %f\n"), eepromRegistry[id]->getEntry()); delay(2000); - eepromRegistry(id)->setEntry(456); + eepromRegistry[id]->setEntry(456); Serial.printf_P(PSTR("\neepromRegistry(id)->setEntry(456): %d\n"), var.get()); delay(2000); - Serial.printf_P(PSTR("\nprint the parameters name by id: %s\n"), eepromRegistry(id)->getName()); - Serial.printf_P(PSTR("\nprint the parameters address by id: %d\n"), int(eepromRegistry(id)->getAddress())); + Serial.printf_P(PSTR("\nprint the parameters name by id: %s\n"), eepromRegistry[id]->getName()); + Serial.printf_P(PSTR("\nprint the parameters address by id: %d\n"), int(eepromRegistry[id]->getAddress())); Serial.print("\n\nSynced variable demo\n"); @@ -69,15 +69,15 @@ void loop() Serial.printf_P(PSTR("\nvar2.getId(): %d\n"), id); delay(2000); - Serial.printf_P(PSTR("\neepromRegistry(id)->getEntry(): %f\n"), eepromRegistry(id)->getEntry()); + Serial.printf_P(PSTR("\neepromRegistry(id)->getEntry(): %f\n"), eepromRegistry[id]->getEntry()); delay(2000); - eepromRegistry(id)->setEntry(4.56); + eepromRegistry[id]->setEntry(4.56); Serial.printf_P(PSTR("\neepromRegistry(id)->setEntry(4.56): %f\n"), var2.get()); delay(2000); - Serial.printf_P(PSTR("\nprint the parameters name by id: %s\n"), eepromRegistry(id)->getName()); - Serial.printf_P(PSTR("\nprint the parameters address by id: %d\n"), int(eepromRegistry(id)->getAddress())); + Serial.printf_P(PSTR("\nprint the parameters name by id: %s\n"), eepromRegistry[id]->getName()); + Serial.printf_P(PSTR("\nprint the parameters address by id: %d\n"), int(eepromRegistry[id]->getAddress())); delay(5000); }