Skip to content
This repository was archived by the owner on Mar 25, 2021. It is now read-only.

Add EEPROM encapsulation #9

Merged
merged 6 commits into from
Nov 16, 2020
Merged

Conversation

Lizj96
Copy link

@Lizj96 Lizj96 commented Nov 2, 2020

No description provided.

James Foster and others added 2 commits November 1, 2020 14:58
}

double EEPROM_TC::readTempSetPoint() {
// Load from EEPROM
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  double value = readDouble(TEMP_ADDRESS);
  if (isnan(value)) {
    return 20;
  }
  return value;
}

void doubleWrite(int address, double value);
double doubleRead(int address);

private:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add private methods for read/write double.

@jgfoster
Copy link
Member

jgfoster commented Nov 8, 2020

We can review this after Arduino-CI/arduino_ci#184 and Arduino-CI/arduino_ci#198 are merged. They should resolve the size cast warnings.

@jgfoster jgfoster merged commit 69874ee into Open-Acidification:class Nov 16, 2020
@prestoncarman
Copy link
Member

@all-contributors please add @Lizj96 for code

@allcontributors
Copy link
Contributor

@prestoncarman

I've put up a pull request to add @Lizj96! 🎉

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants