- printf("device: %d\n", ao_companion_setup.board_id);
- printf("update period: %d\n", ao_companion_setup.update_period);
- printf("channels: %d\n", ao_companion_setup.channels);
- printf("data:");
+ if (!ao_companion_running)
+ return;
+ printf("device: %d\n"
+ "update period: %d\n"
+ "channels: %d\n"
+ "data:",
+ ao_companion_setup.board_id,
+ ao_companion_setup.update_period,
+ ao_companion_setup.channels);