We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c599962 commit 9622071Copy full SHA for 9622071
src/EEPROM.cc
@@ -11,17 +11,20 @@ EEPROMMock* EEPROMMockInstance() {
11
}
12
13
void releaseEEPROMMock() {
14
+ assert (p_EEPROMMock != NULL);
15
if (p_EEPROMMock) {
16
delete p_EEPROMMock;
17
p_EEPROMMock = NULL;
18
19
20
21
uint8_t EEPROM_::read(int a) {
22
23
return p_EEPROMMock->read(a);
24
25
26
void EEPROM_::write(int a, uint8_t b) {
27
28
p_EEPROMMock->write(a, b);
29
30
0 commit comments