@@ -173,15 +173,15 @@ uint8_t IRTherm::setMax(float maxTemp)
173
173
// Convert the unit-ed value to a raw ADC value:
174
174
int16_t rawMax = calcRawTemp (maxTemp);
175
175
// Write that value to the TOMAX EEPROM address:
176
- return writeEEPROM (MLX90614_REGISTER_TOMAX, rawMax);
176
+ return writeMLXEEPROM (MLX90614_REGISTER_TOMAX, rawMax);
177
177
}
178
178
179
179
uint8_t IRTherm::setMin (float minTemp)
180
180
{
181
181
// Convert the unit-ed value to a raw ADC value:
182
182
int16_t rawMin = calcRawTemp (minTemp);
183
183
// Write that value to the TOMIN EEPROM address:
184
- return writeEEPROM (MLX90614_REGISTER_TOMIN, rawMin);
184
+ return writeMLXEEPROM (MLX90614_REGISTER_TOMIN, rawMin);
185
185
}
186
186
187
187
uint8_t IRTherm::setEmissivity (float emis)
@@ -194,7 +194,7 @@ uint8_t IRTherm::setEmissivity(float emis)
194
194
ke = constrain (ke, 0x2000 , 0xFFFF );
195
195
196
196
// Write that value to the ke register
197
- return writeEEPROM (MLX90614_REGISTER_KE, (int16_t )ke);
197
+ return writeMLXEEPROM (MLX90614_REGISTER_KE, (int16_t )ke);
198
198
}
199
199
200
200
float IRTherm::readEmissivity ()
@@ -234,7 +234,7 @@ bool IRTherm::setAddress(uint8_t newAdd)
234
234
tempAdd |= newAdd; // Add the new address
235
235
236
236
// Write the new addres back to EEPROM:
237
- return writeEEPROM (MLX90614_REGISTER_ADDRESS, tempAdd);
237
+ return writeMLXEEPROM (MLX90614_REGISTER_ADDRESS, tempAdd);
238
238
}
239
239
return 0 ;
240
240
}
@@ -388,7 +388,7 @@ bool IRTherm::I2CReadWord(uint8_t reg, int16_t * dest)
388
388
}
389
389
}
390
390
391
- bool IRTherm::writeEEPROM (uint8_t reg, int16_t data)
391
+ bool IRTherm::writeMLXEEPROM (uint8_t reg, int16_t data)
392
392
{
393
393
// Clear out EEPROM first:
394
394
if (I2CWriteWord (reg, 0 ) != 0 )
0 commit comments