~aleteoryx/muditaos

ref: 9c2a304995a308db8821cfc84bfe1957e66c9ca2 muditaos/module-bsp/bsp/bluetooth/Bluetooth.cpp -rw-r--r-- 394 bytes
9c2a3049 — Piotr Tański [EGD-7769] Fixed private number translation 4 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#include "Bluetooth.hpp"
#include <cstdarg>


namespace bsp {
    BTdev::BTdev() : flog(nullptr)
    {
        is_open = false;
    }

    BTdev::~BTdev()
    {
    }

    void BTdev::log(LogLvl lvl,const char* val, ...)
    {
        if(loglvl>=lvl && flog) {
            va_list args;
            va_start(args, val);
            flog(val,args);
            va_end(args);
        }
    }

};