Renamed MySensor.h -> MySensors.h (#481)
* Renamed MySensor.h -> MySensors.h Replaced all references to MySensor.h in examples with MySensors.h * MySensorCore.* renamed to MySensorsCore.* This should make it comply more with naming standards * Updated reference to MySensors core lib
This commit is contained in:
@@ -307,14 +307,14 @@ int FindSensor (const int id, int maxsensor)
|
||||
{
|
||||
int EepromId=0;
|
||||
for (int i=0; i<maxsensor; i++){
|
||||
#ifdef MySensor_h
|
||||
#ifdef MySensors_h
|
||||
int SensorID = loadState(i);
|
||||
#else
|
||||
int SensorID = EEPROM.read(i);
|
||||
#endif
|
||||
if(SensorID == 255)
|
||||
{
|
||||
#ifdef MySensor_h
|
||||
#ifdef MySensors_h
|
||||
saveState(i,id);
|
||||
#else
|
||||
EEPROM.write(i,id);
|
||||
|
||||
Reference in New Issue
Block a user