~aleteoryx/muditaos

ref: 0744fe979f08dbdfc007856e2a66490056897245 muditaos/module-bsp/bsp/bluetooth/Bluetooth.cpp -rw-r--r-- 501 bytes
0744fe97 — Jakub Pyszczak [EGD-559] Volume popup - audio part 5 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
#include "Bluetooth.hpp"
#include <cstdarg>


namespace bsp {
    BTdev::BTdev(unsigned int in_size, unsigned int out_size, int threshold) : flog(nullptr), in(in_size, threshold), out(out_size, threshold)
    {
        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);
        }
    }
};