aboutsummaryrefslogtreecommitdiffstats
path: root/gr-iio/lib/attr_source_impl.h
diff options
context:
space:
mode:
authorVolker Schroer <3470424+dl1ksv@users.noreply.github.com>2021-07-14 12:32:48 +0200
committermormj <34754695+mormj@users.noreply.github.com>2021-07-27 11:25:24 -0400
commit25c233e65943b8f7b93d39f42f120dedbbbb1cb0 (patch)
treee12f2a0fd537933467714a188675e50a6496ec25 /gr-iio/lib/attr_source_impl.h
parentdigital/chunks_to_symbols: special case for the common single-dimension case (diff)
downloadgnuradio-25c233e65943b8f7b93d39f42f120dedbbbb1cb0.tar.xz
gnuradio-25c233e65943b8f7b93d39f42f120dedbbbb1cb0.zip
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 'gr-iio/lib/attr_source_impl.h')
0 files changed, 0 insertions, 0 deletions