@@ -103,7 +103,7 @@ def read_holding_registers(start, end):
def write_coil(var_value):
global serial_conn
connect()
-
+ var_value.value = int(var_value) * 0xFF00
logger.debug('write_coil address: %s, value: %s',
var_value.address, var_value.value
)