Files
MuditaOS/module-bsp/bsp/bluetooth/Bluetooth.cpp
Lefucjusz 09efb75ed5 [MOS-1068] Cleanup BTStack intergration
Code cleanup in various places of
BTStack integration.
2024-05-29 17:33:30 +02:00

19 lines
420 B
C++

#include "Bluetooth.hpp"
#include <cstdarg>
namespace bsp
{
BTDevice::BTDevice() : logLevel{LogNone}, isOpen{false}, logFunction{nullptr}
{}
void BTDevice::log(LogLevel level, const char *val, ...)
{
if ((logLevel >= level) && (logFunction != nullptr)) {
va_list args;
va_start(args, val);
logFunction(val, args);
va_end(args);
}
}
}