diff options
author | Volker Schroer <3470424+dl1ksv@users.noreply.github.com> | 2021-07-14 12:32:48 +0200 |
---|---|---|
committer | mormj <34754695+mormj@users.noreply.github.com> | 2021-07-27 11:25:24 -0400 |
commit | 25c233e65943b8f7b93d39f42f120dedbbbb1cb0 (patch) | |
tree | e12f2a0fd537933467714a188675e50a6496ec25 /gnuradio-runtime/python | |
parent | 592b0f4f37d59dc8a11b1fea75f6016f2118e15b (diff) |
gr-iio: pluto source /sink fails to set paramter if german locale is used
pluto source / sink fails to set hardwaregain with
gr::log :WARN: iio::device::set_params - Unable to write attribute in_voltage0_hardwaregain: -22
gr::log :WARN: iio::device::set_params - Unable to write attribute out_voltage0_hardwaregain: -22
gain values are treated as double. The conversion std::to_string() uses the locale setting.
So in the US std::to_string(10.) leads to "10.0" while in Germany the result is "10,0" which the pluto handles as error.
This problem only exists if real values are converted. So check if the converted string contains a , as separator and change it to a dot .
Signed-off-by: Volker Schroer <3470424+dl1ksv@users.noreply.github.com>
Diffstat (limited to 'gnuradio-runtime/python')
0 files changed, 0 insertions, 0 deletions