Skip to content

Commit 539eabc

Browse files
committed
api v0.16.3 commit
1 parent e57b0bc commit 539eabc

File tree

4 files changed

+30
-31
lines changed

4 files changed

+30
-31
lines changed

Doxyfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ PROJECT_NAME = "MetaWear C++ API"
3838
# could be handy for archiving the generated documentation or if some version
3939
# control system is used.
4040

41-
PROJECT_NUMBER = 0.16.2
41+
PROJECT_NUMBER = 0.16.3
4242

4343
# Using the PROJECT_BRIEF tag one can provide an optional one line description
4444
# for a project that appears at the top of each page and should give viewer a

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ dist/
3939
└── lib
4040
└── x64
4141
├── libmetawear.so -> libmetawear.so.0
42-
├── libmetawear.so.0 -> libmetawear.so.0.16.2
43-
└── libmetawear.so.0.16.2
42+
├── libmetawear.so.0 -> libmetawear.so.0.16.3
43+
└── libmetawear.so.0.16.3
4444

4545
```
4646

project_version.mk

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
VERSION=0.16.2
1+
VERSION=0.16.3
22
VERSION_MAJOR=0
33
VERSION_MINOR=16
4-
VERSION_STEP=2
4+
VERSION_STEP=3

src/metawear/impl/cpp/metawearboard.cpp

Lines changed: 25 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
#include <typeinfo>
99
#include <unordered_map>
1010
#include <unordered_set>
11-
#include <tuple>
1211
#include <vector>
1312

1413
#include "metawear/core/metawearboard.h"
@@ -344,31 +343,31 @@ void mbl_mw_metawearboard_set_time_for_response(MblMwMetaWearBoard* board, uint1
344343
}
345344

346345
const unordered_map<uint8_t, tuple<const char*, void(*)(MblMwMetaWearBoard*)>> MODULE_ATTRS = {
347-
{ MBL_MW_MODULE_SWITCH, {"Switch", init_switch_module} },
348-
{ MBL_MW_MODULE_LED, {"Led", nullptr} },
349-
{ MBL_MW_MODULE_ACCELEROMETER, {"Accelerometer", init_accelerometer_module} },
350-
{ MBL_MW_MODULE_TEMPERATURE, {"Temperature", init_multichannel_temp_module} },
351-
{ MBL_MW_MODULE_GPIO, {"Gpio", init_gpio_module} },
352-
{ MBL_MW_MODULE_NEO_PIXEL, {"NeoPixel", nullptr} },
353-
{ MBL_MW_MODULE_IBEACON, {"IBeacon", nullptr} },
354-
{ MBL_MW_MODULE_HAPTIC, {"Haptic", nullptr} },
355-
{ MBL_MW_MODULE_DATA_PROCESSOR, {"DataProcessor", init_dataprocessor_module} },
356-
{ MBL_MW_MODULE_EVENT, {"Event", init_event_module} },
357-
{ MBL_MW_MODULE_LOGGING, {"Logging", init_logging} },
358-
{ MBL_MW_MODULE_TIMER, {"Timer", init_timer_module} },
359-
{ MBL_MW_MODULE_I2C, {"SerialPassthrough", init_serialpassthrough_module} },
360-
{ MBL_MW_MODULE_MACRO, {"Macro", init_macro_module} },
361-
{ MBL_MW_MODULE_CONDUCTANCE, {"Conductance", init_conductance_module} },
362-
{ MBL_MW_MODULE_SETTINGS, {"Settings", init_settings_module} },
363-
{ MBL_MW_MODULE_BAROMETER, {"Barometer", init_barometer_module} },
364-
{ MBL_MW_MODULE_GYRO, {"Gyro", init_gyro_module} },
365-
{ MBL_MW_MODULE_AMBIENT_LIGHT, {"AmbientLight", init_ambient_light_module} },
366-
{ MBL_MW_MODULE_MAGNETOMETER, {"Magnetometer", init_magnetometer_module} },
367-
{ MBL_MW_MODULE_HUMIDITY, {"Humidity", init_humidity_module} },
368-
{ MBL_MW_MODULE_COLOR_DETECTOR, {"Color", init_colordetector_module} },
369-
{ MBL_MW_MODULE_PROXIMITY, {"Proximity", init_proximity_module} },
370-
{ MBL_MW_MODULE_SENSOR_FUSION, {"SensorFusion", init_sensor_fusion_module} },
371-
{ MBL_MW_MODULE_DEBUG, {"Debug", init_debug_module} }
346+
{ MBL_MW_MODULE_SWITCH, make_tuple("Switch", init_switch_module) },
347+
{ MBL_MW_MODULE_LED, make_tuple("Led", nullptr) },
348+
{ MBL_MW_MODULE_ACCELEROMETER, make_tuple("Accelerometer", init_accelerometer_module) },
349+
{ MBL_MW_MODULE_TEMPERATURE, make_tuple("Temperature", init_multichannel_temp_module) },
350+
{ MBL_MW_MODULE_GPIO, make_tuple("Gpio", init_gpio_module) },
351+
{ MBL_MW_MODULE_NEO_PIXEL, make_tuple("NeoPixel", nullptr) },
352+
{ MBL_MW_MODULE_IBEACON, make_tuple("IBeacon", nullptr) },
353+
{ MBL_MW_MODULE_HAPTIC, make_tuple("Haptic", nullptr) },
354+
{ MBL_MW_MODULE_DATA_PROCESSOR, make_tuple("DataProcessor", init_dataprocessor_module) },
355+
{ MBL_MW_MODULE_EVENT, make_tuple("Event", init_event_module) },
356+
{ MBL_MW_MODULE_LOGGING, make_tuple("Logging", init_logging) },
357+
{ MBL_MW_MODULE_TIMER, make_tuple("Timer", init_timer_module) },
358+
{ MBL_MW_MODULE_I2C, make_tuple("SerialPassthrough", init_serialpassthrough_module) },
359+
{ MBL_MW_MODULE_MACRO, make_tuple("Macro", init_macro_module) },
360+
{ MBL_MW_MODULE_CONDUCTANCE, make_tuple("Conductance", init_conductance_module) },
361+
{ MBL_MW_MODULE_SETTINGS, make_tuple("Settings", init_settings_module) },
362+
{ MBL_MW_MODULE_BAROMETER, make_tuple("Barometer", init_barometer_module) },
363+
{ MBL_MW_MODULE_GYRO, make_tuple("Gyro", init_gyro_module) },
364+
{ MBL_MW_MODULE_AMBIENT_LIGHT, make_tuple("AmbientLight", init_ambient_light_module) },
365+
{ MBL_MW_MODULE_MAGNETOMETER, make_tuple("Magnetometer", init_magnetometer_module) },
366+
{ MBL_MW_MODULE_HUMIDITY, make_tuple("Humidity", init_humidity_module) },
367+
{ MBL_MW_MODULE_COLOR_DETECTOR, make_tuple("Color", init_colordetector_module) },
368+
{ MBL_MW_MODULE_PROXIMITY, make_tuple("Proximity", init_proximity_module) },
369+
{ MBL_MW_MODULE_SENSOR_FUSION, make_tuple("SensorFusion", init_sensor_fusion_module) },
370+
{ MBL_MW_MODULE_DEBUG, make_tuple("Debug", init_debug_module) }
372371
};
373372

374373
static inline void service_discovery_completed(MblMwMetaWearBoard* board) {

0 commit comments

Comments
 (0)