Push down device specific code

r1290 | dcl | 2006-11-15 08:38:29 +1100 (Wed, 15 Nov 2006) | 2 lines
This commit is contained in:
Douglas Clowes
2006-11-15 08:38:29 +11:00
parent 2590869f4d
commit 58099af3da
2 changed files with 10 additions and 10 deletions

View File

@@ -140,16 +140,6 @@ int main(int argc, char* argv[])
if (timeout == 0) if (timeout == 0)
{ {
device->current_time = now; device->current_time = now;
#if 1
dbg_printf(0, "%d:-%s %s %.3f %s %.3f %4d\n",
idx,
make_timestamp(&device->current_time),
make_timestamp(&device->sample_timer),
device_time_to_next_sample(device),
make_timestamp(&device->report_timer),
device_time_to_next_report(device),
device->sample_index);
#endif
DEVICE_CHK(device_poll(device)); DEVICE_CHK(device_poll(device));
} }
} }

View File

@@ -507,6 +507,16 @@ int device_poll(DEVICE* device)
SAMPLE* sp = NULL; SAMPLE* sp = NULL;
SAMPLE* psp = NULL; SAMPLE* psp = NULL;
#if 0
dbg_printf(0, "%d:-%s %s %.3f %s %.3f %4d\n",
idx,
make_timestamp(&device->current_time),
make_timestamp(&device->sample_timer),
device_time_to_next_sample(device),
make_timestamp(&device->report_timer),
device_time_to_next_report(device),
device->sample_index);
#endif
/* read the value from the hardware counter to a temp */ /* read the value from the hardware counter to a temp */
++device->poll_counter; ++device->poll_counter;
HWARE_TEST(hware_read(device->private_data, &current_count_local)); HWARE_TEST(hware_read(device->private_data, &current_count_local));