Files
bobbycar-boardcomputer-firm…/main/actions/bluetoothbeginaction.cpp
T

16 lines
350 B
C++
Raw Normal View History

2021-11-02 01:43:58 +01:00
#include "bluetoothbeginaction.h"
// local includes
#include "globals.h"
2021-12-29 00:40:05 +01:00
#include "newsettings.h"
2021-11-02 01:43:58 +01:00
#ifdef FEATURE_BLUETOOTH
void BluetoothBeginAction::triggered()
{
2021-12-29 00:40:05 +01:00
if (!bluetoothSerial.begin(configs.bluetoothName.value.c_str()))
2021-11-02 01:43:58 +01:00
{
//Serial.println("Could not begin bluetooth");
// TODO: better error handling
}
}
#endif