modelica-3rdparty / Modelica_DeviceDrivers

Free library for interfacing hardware drivers to Modelica models. There is support for joysticks, keyboards, UDP, TCP/IP, LCM, MQTT, shared memory, AD/DA converters, serial port and other devices.
BSD 3-Clause "New" or "Revised" License
77 stars 31 forks source link

Error in Linux MDD_getTimeMS(...) #363

Closed bernhard-thiele closed 2 years ago

bernhard-thiele commented 2 years ago

Calling Modelica_DeviceDrivers.OperatingSystem.clock(...) on Linux produces garbage output. Reason is two errors in Linux implementation of MDD_getTimeMS(...): 1. Wrong scaling factor and 2. integer overflow (use of too small 32-bit integer).