Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: common.h
- Revision:
- 10:869163c7929d
- Parent:
- 8:1861d0eef60a
- Child:
- 27:27cffdb2e9d3
--- a/common.h Thu Jan 05 13:23:49 2017 +0100 +++ b/common.h Thu Jan 05 13:56:25 2017 +0000 @@ -24,8 +24,8 @@ SOUND = 4, }; -constexpr bool is_sensor_float(SENSOR_TYPE t) { - return t == SENSOR_TYPE::SOUND; +inline bool is_sensor_float(SENSOR_TYPE t) { + return t == SOUND; } struct SensorDescription {