~aleteoryx/muditaos

ref: 8b50f65a79f51bc712fc22c99c5c96f5421c1792 muditaos/module-bsp/bsp/bluetooth/Bluetooth.cpp -rw-r--r-- 394 bytes
8b50f65a — mkamonMdt [BH-828] PowerNap progress implementation 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);
        }
    }

};