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: rotary_encoder.cpp
- Revision:
- 7:3b51e2c660b6
- Parent:
- 2:4580c3869b7b
- Child:
- 10:684e1604e5ea
--- a/rotary_encoder.cpp Sun Apr 03 06:30:19 2016 +0000
+++ b/rotary_encoder.cpp Sat May 21 02:50:07 2016 +0000
@@ -1,8 +1,6 @@
#include "mbed.h"
#include "rotary_encoder.hpp"
-namespace mbed_stl {
-
const size_t rotary_encoder::max_counts_ = 0xFFFF;
rotary_encoder::rotary_encoder(size_t resolution) :
@@ -12,5 +10,3 @@
float rotary_encoder::get_revol_num() const {
return static_cast<float>(get_counts()) / resolution_;
}
-
-} /* namespace mbed_stl */