Skip to content

Commit

Permalink
Hotfix (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
cybcon authored Nov 8, 2023
1 parent 9b5b4fa commit 4c31604
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ RUN python3 setup.py install
# Building the docker image with already compiled modules
FROM base
LABEL maintainer="Michael Oberdorf IT-Consulting <[email protected]>"
LABEL site.local.program.version="1.0.13"
LABEL site.local.program.version="1.0.14"

COPY --from=builder /usr/lib/python3.11/site-packages /usr/lib/python3.11/site-packages

Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ Container Registry: [DockerHub](https://hub.docker.com/r/oitc/modbus-client)

# Supported tags and respective `Dockerfile` links

* [`latest`, `1.0.13`](https://github.com/cybcon/modbus-client/blob/v1.0.13/Dockerfile)
* [`latest`, `1.0.14`](https://github.com/cybcon/modbus-client/blob/v1.0.14/Dockerfile)
* [`1.0.13`](https://github.com/cybcon/modbus-client/blob/v1.0.13/Dockerfile)
* [`1.0.12`](https://github.com/cybcon/modbus-client/blob/v1.0.12/Dockerfile)
* [`1.0.11`](https://github.com/cybcon/modbus-client/blob/v1.0.11/Dockerfile)

Expand Down
4 changes: 2 additions & 2 deletions src/app/modbus_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
import FloatToHex
from numpy import little_endian

VERSION='1.0.13'
VERSION='1.0.14'
DEBUG=False
"""
###############################################################################
Expand Down Expand Up @@ -192,7 +192,7 @@ def parse_modbus_result(registers: list, startRegister: int, readLength: int, va

# parse the results
if args.registerType >= 3:
df = parse_modbus_result(registers=rr.registers, startRegister=register_number, readLength=args.length, type='word', big_endian=args.bigEndian)
df = parse_modbus_result(registers=rr.registers, startRegister=register_number, readLength=args.length, valueType='word', big_endian=args.bigEndian)
# sort and filter output
df = df[['HEX16', 'UINT16', 'INT16', 'BIT', 'HEX32', 'FLOAT32']] #, 'UINT32', 'INT32']]
else:
Expand Down

0 comments on commit 4c31604

Please sign in to comment.