Add include guards and use explicit inclusions
This commit is contained in:
parent
aaa30cd2aa
commit
6b600e021e
7 changed files with 34 additions and 2 deletions
|
@ -1,3 +1,6 @@
|
||||||
|
#ifndef BluetoothLEDCallback_cpp
|
||||||
|
#define BluetoothLEDCallback_cpp
|
||||||
|
|
||||||
#include "BluetoothLightControl.cpp"
|
#include "BluetoothLightControl.cpp"
|
||||||
#include <BLEUtils.h>
|
#include <BLEUtils.h>
|
||||||
|
|
||||||
|
@ -18,3 +21,5 @@ class BluetoothLEDCallback : public BLECharacteristicCallbacks {
|
||||||
_lightControl = lightControl;
|
_lightControl = lightControl;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
|
@ -1,4 +1,6 @@
|
||||||
#include "LED.cpp"
|
#ifndef BluetoothLightControl_cpp
|
||||||
|
#define BluetoothLightControl_cpp
|
||||||
|
|
||||||
#include "LedManager.cpp"
|
#include "LedManager.cpp"
|
||||||
#include <map>
|
#include <map>
|
||||||
|
|
||||||
|
@ -29,3 +31,5 @@ class BluetoothLightControl{
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
|
@ -1,3 +1,6 @@
|
||||||
|
#ifndef BluetoothService_cpp
|
||||||
|
#define BluetoothService_cpp
|
||||||
|
|
||||||
#include <Arduino.h>
|
#include <Arduino.h>
|
||||||
#include <BLEDevice.h>
|
#include <BLEDevice.h>
|
||||||
#include <BLEServer.h>
|
#include <BLEServer.h>
|
||||||
|
@ -46,3 +49,5 @@ public:
|
||||||
BLEDevice::startAdvertising();
|
BLEDevice::startAdvertising();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
|
@ -1,3 +1,6 @@
|
||||||
|
#ifndef LedManager_cpp
|
||||||
|
#define LedManager_cpp
|
||||||
|
|
||||||
#include "LED.cpp"
|
#include "LED.cpp"
|
||||||
#include "TimerManager.cpp"
|
#include "TimerManager.cpp"
|
||||||
#include <map>
|
#include <map>
|
||||||
|
@ -33,4 +36,6 @@ public:
|
||||||
if (timer > 0)
|
if (timer > 0)
|
||||||
_timers->reset(id, timer);
|
_timers->reset(id, timer);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
|
@ -1,3 +1,6 @@
|
||||||
|
#ifndef Timer_cpp
|
||||||
|
#define Timer_cpp
|
||||||
|
|
||||||
#include <Arduino.h>
|
#include <Arduino.h>
|
||||||
#include <functional>
|
#include <functional>
|
||||||
|
|
||||||
|
@ -31,3 +34,5 @@ public:
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
|
@ -1,3 +1,6 @@
|
||||||
|
#ifndef TimerManager_cpp
|
||||||
|
#define TimerManager_cpp
|
||||||
|
|
||||||
#include <map>
|
#include <map>
|
||||||
#include <functional>
|
#include <functional>
|
||||||
#include "Timer.cpp"
|
#include "Timer.cpp"
|
||||||
|
@ -25,3 +28,5 @@ class TimerManager{
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
|
@ -1,6 +1,9 @@
|
||||||
#include "LED.cpp"
|
#include "LED.cpp"
|
||||||
#include "BluetoothLEDCallback.cpp"
|
#include "BluetoothLEDCallback.cpp"
|
||||||
|
#include "BluetoothLightControl.cpp"
|
||||||
#include "BluetoothService.cpp"
|
#include "BluetoothService.cpp"
|
||||||
|
#include "LedManager.cpp"
|
||||||
|
#include "TimerManager.cpp"
|
||||||
#include <Arduino.h>
|
#include <Arduino.h>
|
||||||
|
|
||||||
#define FADE_IN_DURATION 500
|
#define FADE_IN_DURATION 500
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue