Use 1.6kHz as sampling rate
This commit is contained in:
parent
c73c6e1999
commit
91a639852f
2 changed files with 2 additions and 2 deletions
|
|
@ -233,7 +233,7 @@ dev_iio_t* dev_iio_create(const char* path) {
|
|||
|
||||
// ============================================ samplig_freq ================================================
|
||||
{
|
||||
const char* const preferred_samplig_freq = "800.000000";
|
||||
const char* const preferred_samplig_freq = " 1600.000000";
|
||||
const size_t preferred_samplig_freq_len = strlen(preferred_samplig_freq);
|
||||
|
||||
if (write_file(iio->path, "/in_accel_sampling_frequency", preferred_samplig_freq, preferred_samplig_freq_len) >= 0) {
|
||||
|
|
|
|||
|
|
@ -198,7 +198,7 @@ static void* iio_read_thread_func(void* ptr) {
|
|||
}
|
||||
|
||||
// TODO: configure equal as sampling rate
|
||||
usleep(1250);
|
||||
usleep(625);
|
||||
|
||||
// either way.... fill a new buffer on the next cycle
|
||||
msg = NULL;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue