mirror of
https://github.com/OpenEtherCATsociety/SOEM.git
synced 2026-10-02 12:24:03 +08:00
Fix mscv warnings
Change-Id: Icb8d8bd0a756acda12b7fb392f199f9216aebd7a
This commit is contained in:
@@ -53,7 +53,7 @@ void ec_sync(int64 reftime, int64 cycletime, int64 *offsettime)
|
||||
}
|
||||
timeerror = -delta;
|
||||
integral += timeerror;
|
||||
*offsettime = (timeerror * pgain) + (integral * igain);
|
||||
*offsettime = (int64)((timeerror * pgain) + (integral * igain));
|
||||
}
|
||||
|
||||
/* RT EtherCAT thread */
|
||||
|
||||
Reference in New Issue
Block a user