Bläddra i källkod

Changed some prints

tags/v1.4.0^2
Bertrand Lemasle 6 år sedan
förälder
incheckning
2b3350c6e7
3 ändrade filer med 3 tillägg och 2 borttagningar
  1. +1
    -0
      src/Config.cpp
  2. +1
    -1
      src/MainUnit.cpp
  3. +1
    -1
      src/Positions.cpp

+ 1
- 0
src/Config.cpp Visa fil

@@ -19,6 +19,7 @@ namespace config {
hardware::i2c::powerOn();
hardware::i2c::eeprom.readBlock(CONFIG_ADDR, value);
print();
if (CONFIG_SEED != value.seed) reset(); //todo : reset network if seed for network is not right
hardware::i2c::powerOff();


+ 1
- 1
src/MainUnit.cpp Visa fil

@@ -42,7 +42,7 @@ namespace mainunit {
void deepSleep(uint16_t seconds) {
#define CURRENT_LOGGER_FUNCTION "deepSleep"
NOTICE_FORMAT("%d seconds", seconds);
NOTICE_FORMAT("%ds", seconds);
interruptIn(seconds);
details::prepareSleep();


+ 1
- 1
src/Positions.cpp Visa fil

@@ -112,12 +112,12 @@ namespace positions {
entryIndex = config->lastEntry + 1;
entryAddress = details::getEntryAddress(entryIndex);
print(entryIndex, entry);
hardware::i2c::powerOn();
hardware::i2c::eeprom.writeBlock(entryAddress, entry);
NOTICE_MSG("Saved");
print(entryIndex, entry);
config->lastEntry++;
if (config->lastEntry > details::maxEntryIndex) config->lastEntry = 0;


Laddar…
Avbryt
Spara