runtime/PlcStatus.py
author Edouard Tisserant
Fri, 17 Feb 2023 11:41:58 +0100
changeset 3727 265fc8001d0a
parent 2416 1ca207782dde
permissions -rw-r--r--
Runtime: Fix bugs in Linux target.

- next occurence absolute time computation failing on 32-bit because of casting
- PLC thread was started before period was set, potentially passing uninitialized timespec to clock_nanosleep()
# -*- coding: utf-8 -*-

# See COPYING.Runtime file for copyrights details.


def _(x):
    """No translation"""
    return x


Broken = _("Broken")
Started = _("Started")
Stopped = _("Stopped")
Disconnected = _("Disconnected")
Empty = _("Empty")