64bit-Division vermieden.

This commit is contained in:
Florian Pose 2006-03-21 14:35:52 +00:00
parent 58d3c00f3d
commit 199dcda810
1 changed files with 2 additions and 2 deletions

View File

@ -888,7 +888,7 @@ void ecrt_master_sync_io(ec_master_t *master)
ec_master_send_commands(master);
t_start = get_cycles(); // Sendezeit nehmen
t_timeout = (cycles_t) master->timeout * cpu_khz / 1000;
t_timeout = (cycles_t) master->timeout * (cpu_khz / 1000);
while (1)
{
@ -1013,7 +1013,7 @@ void ecrt_master_prepare_async_io(ec_master_t *master)
ecrt_master_async_send(master);
t_start = get_cycles(); // Sendezeit nehmen
t_timeout = (cycles_t) master->timeout * cpu_khz / 1000;
t_timeout = (cycles_t) master->timeout * (cpu_khz / 1000);
// Aktiv warten!
while (1) {