use my Timer class on all platforms, it works better than the freertos version

This commit is contained in:
geeksville
2020-05-25 07:48:36 -07:00
parent 2770cc7de3
commit 1656c8d0cb
8 changed files with 48 additions and 56 deletions

View File

@@ -43,12 +43,15 @@ void getMacAddr(uint8_t *dmac)
NRF52Bluetooth *nrf52Bluetooth;
// FIXME, turn off soft device access for debugging
static bool isSoftDeviceAllowed = false;
static bool bleOn = false;
void setBluetoothEnable(bool on)
{
if (on != bleOn) {
if (on) {
if (!nrf52Bluetooth) {
if (!nrf52Bluetooth && isSoftDeviceAllowed) {
nrf52Bluetooth = new NRF52Bluetooth();
nrf52Bluetooth->setup();
}