- struct ao_hmc5883_sample sample;
-
- sample = ao_hmc5883_current;
- printf ("X: %d Y: %d Z: %d\n", sample.x, sample.y, sample.z);
+ struct ao_data sample;
+ ao_data_get(&sample);
+ printf ("X: %d Y: %d Z: %d missed irq: %lu\n",
+ sample.hmc5883.x, sample.hmc5883.y, sample.hmc5883.z, ao_hmc5883_missed_irq);