Configuration is not possible while buffer mode is ongoing. The previous
code was making sure that it was disabled but was always enabling it
once done, even if it was not enabled before. But if only the sampling
frequency has been set, it could happen that enabling was not possible.
For example, if no channel was selected. Leading to error messages in
the logs.
BugzID: 62694
Required for HW23.
The code is not really clean but helps make the difference between HW21
and HW23. Polling creates a device /dev/imu0 giving the poll frequency.
BugzID: 61346
since gpsd is not setting imu sampling rate anymore it is not required
anymore to start gpsd first and then overwrite imu settings. anyway, starting
imu config before gpsd looks more reliable by design.
BugzID: 57164
Signed-off-by: Lucien Mueller <lucien.mueller@netmodule.com>
Signed-off-by: Patrick Zysset <patrick.zysset@netmodule.com>