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:
@@ -140,16 +140,6 @@ int main(int argc, char* argv[])
|
||||
if (timeout == 0)
|
||||
{
|
||||
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));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -507,6 +507,16 @@ int device_poll(DEVICE* device)
|
||||
SAMPLE* sp = 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 */
|
||||
++device->poll_counter;
|
||||
HWARE_TEST(hware_read(device->private_data, ¤t_count_local));
|
||||
|
||||
Reference in New Issue
Block a user