mirror of
https://github.com/mudita/MuditaOS.git
synced 2026-01-19 03:20:56 -05:00
19 lines
420 B
C++
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);
|
|
}
|
|
}
|
|
}
|