Skip to content

Commit 762fa83

Browse files
committed
[cpp] Fix a bug in sensor.bin_data()
Path to the sensor attribute was erroneously decorated with static keyword, which lead to all sensors sharing same attribute.
1 parent da84989 commit 762fa83

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cpp/ev3dev.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -556,7 +556,7 @@ const std::vector<char>& sensor::bin_data() const
556556
_bin_data.resize(num_values() * value_size);
557557
}
558558

559-
static const string fname = _path + "bin_data";
559+
const string fname = _path + "bin_data";
560560
ifstream &is = ifstream_open(fname);
561561
if (is.is_open())
562562
{

0 commit comments

Comments
 (0)