mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-08-02 17:09:28 +02:00
2019-08-26 Fred Gleason <fredg@paravelsystems.com>
* Fixed a bug in the 'pypad_xmpad.py' PyPAD script that caused an infinite loop.
This commit is contained in:
parent
a6ef936905
commit
0a9454cf91
@ -19021,3 +19021,6 @@
|
|||||||
2019-08-26 Fred Gleason <fredg@paravelsystems.com>
|
2019-08-26 Fred Gleason <fredg@paravelsystems.com>
|
||||||
* Fixed a bug in the 'pypad_xds.py' PyPAD script that caused
|
* Fixed a bug in the 'pypad_xds.py' PyPAD script that caused
|
||||||
an infinite loop.
|
an infinite loop.
|
||||||
|
2019-08-26 Fred Gleason <fredg@paravelsystems.com>
|
||||||
|
* Fixed a bug in the 'pypad_xmpad.py' PyPAD script that caused
|
||||||
|
an infinite loop.
|
||||||
|
@ -149,9 +149,8 @@ def ProcessTimer(config):
|
|||||||
|
|
||||||
def ProcessPad(update):
|
def ProcessPad(update):
|
||||||
n=1
|
n=1
|
||||||
try:
|
|
||||||
while(True):
|
|
||||||
section='Serial'+str(n)
|
section='Serial'+str(n)
|
||||||
|
while(update.config().has_section(section)):
|
||||||
if update.shouldBeProcessed(section) and update.hasPadType(pypad.TYPE_NOW):
|
if update.shouldBeProcessed(section) and update.hasPadType(pypad.TYPE_NOW):
|
||||||
dev=OpenSerialDevice(update.config(),section)
|
dev=OpenSerialDevice(update.config(),section)
|
||||||
b4=MakeB4(update,section)
|
b4=MakeB4(update,section)
|
||||||
@ -164,9 +163,8 @@ def ProcessPad(update):
|
|||||||
dev.write(a5.encode('utf-8'))
|
dev.write(a5.encode('utf-8'))
|
||||||
dev.close()
|
dev.close()
|
||||||
n=n+1
|
n=n+1
|
||||||
|
section='Serial'+str(n)
|
||||||
|
|
||||||
except configparser.NoSectionError:
|
|
||||||
return
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# 'Main' function
|
# 'Main' function
|
||||||
|
Loading…
x
Reference in New Issue
Block a user