Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
osie
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
osie
Commits
63f9c314
Commit
63f9c314
authored
Jul 22, 2021
by
Ivan Tyagov
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cleanup.
parent
d048af65
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
4 deletions
+1
-4
eggs/osie_coupler/osie_modbus.py
eggs/osie_coupler/osie_modbus.py
+1
-4
No files found.
eggs/osie_coupler/osie_modbus.py
View file @
63f9c314
...
@@ -32,9 +32,6 @@ from bitarray.util import ba2int
...
@@ -32,9 +32,6 @@ from bitarray.util import ba2int
from
argparse
import
ArgumentParser
from
argparse
import
ArgumentParser
# XXX: is it needed actually, examine
ModbusRequest
.
function_code
=
55
# name fo device within Lime2
# name fo device within Lime2
DEFAULT_MOD_IO_DEVICE_NAME
=
"/dev/i2c-1"
DEFAULT_MOD_IO_DEVICE_NAME
=
"/dev/i2c-1"
...
@@ -173,7 +170,7 @@ def run_async_server(port = 502, interface = "0.0.0.0"):
...
@@ -173,7 +170,7 @@ def run_async_server(port = 502, interface = "0.0.0.0"):
co
=
ModbusSequentialDataBlock
(
0
,
[
0
]
*
10
),
co
=
ModbusSequentialDataBlock
(
0
,
[
0
]
*
10
),
hr
=
ModbusSequentialDataBlock
(
0
,
[
0
]
*
10
),
hr
=
ModbusSequentialDataBlock
(
0
,
[
0
]
*
10
),
ir
=
ModbusSequentialDataBlock
(
0
,
[
0
]
*
10
),
zero_mode
=
True
)
ir
=
ModbusSequentialDataBlock
(
0
,
[
0
]
*
10
),
zero_mode
=
True
)
store
.
register
(
ModbusRequest
.
function_code
,
'cm'
,
store
.
register
(
55
,
'cm'
,
ModbusSequentialDataBlock
(
0
,
[
17
]
*
100
))
ModbusSequentialDataBlock
(
0
,
[
17
]
*
100
))
context
=
ModbusServerContext
(
slaves
=
store
,
single
=
True
)
context
=
ModbusServerContext
(
slaves
=
store
,
single
=
True
)
...
...
Ivan Tyagov
@Tyagov
mentioned in commit
11e79dc5
·
Jul 27, 2021
mentioned in commit
11e79dc5
mentioned in commit 11e79dc56fa075c53241c3d311d1c1963a373a27
Toggle commit list
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment