mirror of
https://github.com/naruxde/revpimodio2.git
synced 2025-11-08 22:03:53 +01:00
typo core.temperatur in core.temperature umbenannt
This commit is contained in:
@@ -117,7 +117,7 @@ Methods</h3>
|
||||
<td><a style="color:#0000FF" href="#Core.rightgate">rightgate</a></td>
|
||||
<td>Statusbit rechts vom RevPi ist ein piGate Modul angeschlossen.</td>
|
||||
</tr><tr>
|
||||
<td><a style="color:#0000FF" href="#Core.temperatur">temperatur</a></td>
|
||||
<td><a style="color:#0000FF" href="#Core.temperature">temperature</a></td>
|
||||
<td>Gibt CPU-Temperatur zurueck.</td>
|
||||
</tr><tr>
|
||||
<td><a style="color:#0000FF" href="#Core.unconfdevice">unconfdevice</a></td>
|
||||
@@ -316,10 +316,10 @@ Statusbit rechts vom RevPi ist ein piGate Modul angeschlossen.
|
||||
<dd>
|
||||
True, wenn piGate rechts existiert
|
||||
</dd>
|
||||
</dl><a NAME="Core.temperatur" ID="Core.temperatur"></a>
|
||||
</dl><a NAME="Core.temperature" ID="Core.temperature"></a>
|
||||
<h3 style="background-color:#FFFFFF;color:#FF0000">
|
||||
Core.temperatur</h3>
|
||||
<b>temperatur</b>(<i></i>)
|
||||
Core.temperature</h3>
|
||||
<b>temperature</b>(<i></i>)
|
||||
<p>
|
||||
Gibt CPU-Temperatur zurueck.
|
||||
</p><dl>
|
||||
|
||||
@@ -25,7 +25,7 @@ revpimodio2.device.Core.overunderflow?4()
|
||||
revpimodio2.device.Core.picontrolrunning?4()
|
||||
revpimodio2.device.Core.rightgate?4()
|
||||
revpimodio2.device.Core.status?7
|
||||
revpimodio2.device.Core.temperatur?4()
|
||||
revpimodio2.device.Core.temperature?4()
|
||||
revpimodio2.device.Core.unconfdevice?4()
|
||||
revpimodio2.device.Device._buildio?5(dict_io, iotype)
|
||||
revpimodio2.device.Device._devconfigure?5()
|
||||
|
||||
@@ -367,7 +367,7 @@ class Core(Device):
|
||||
def _devconfigure(self):
|
||||
"""Core-Klasse vorbereiten."""
|
||||
self._iocycle = None
|
||||
self._iotemperatur = None
|
||||
self._iotemperature = None
|
||||
self._iofrequency = None
|
||||
self._ioerrorcnt = None
|
||||
self._ioled = 1
|
||||
@@ -389,7 +389,7 @@ class Core(Device):
|
||||
# core 1.2
|
||||
self._iocycle = 1
|
||||
self._ioerrorcnt = 2
|
||||
self._iotemperatur = 3
|
||||
self._iotemperature = 3
|
||||
self._iofrequency = 4
|
||||
self._ioled = 5
|
||||
self._ioerrorlimit1 = 6
|
||||
@@ -546,12 +546,12 @@ class Core(Device):
|
||||
)
|
||||
|
||||
@property
|
||||
def temperatur(self):
|
||||
def temperature(self):
|
||||
"""Gibt CPU-Temperatur zurueck.
|
||||
@return CPU-Temperatur in Celsius"""
|
||||
return None if self._iotemperatur is None else int.from_bytes(
|
||||
self.__lst_io[self._iotemperatur].get_value(),
|
||||
byteorder=self.__lst_io[self._iotemperatur]._byteorder
|
||||
return None if self._iotemperature is None else int.from_bytes(
|
||||
self.__lst_io[self._iotemperature].get_value(),
|
||||
byteorder=self.__lst_io[self._iotemperature]._byteorder
|
||||
)
|
||||
|
||||
@property
|
||||
|
||||
Reference in New Issue
Block a user