modbus: update to support other targets (Backport v4.4)

This commit is contained in:
Alex Lisitsyn
2022-06-20 15:34:06 +08:00
committed by Jiang Jiang Jian
parent f5ee7093b8
commit 76bde2df72
16 changed files with 124 additions and 92 deletions

View File

@@ -165,7 +165,7 @@ def test_check_mode(dut=None, mode_str=None, value=None):
return False
@ttfw_idf.idf_example_test(env_tag='Example_T2_RS485')
@ttfw_idf.idf_example_test(env_tag='Example_T2_RS485', target=['esp32'])
def test_modbus_communication(env, comm_mode):
global logger
@@ -283,6 +283,5 @@ if __name__ == '__main__':
logger.addHandler(fh)
logger.addHandler(ch)
logger.info('Start script %s.' % os.path.basename(__file__))
print('Logging file name: %s' % logger.handlers[0].baseFilename)
test_modbus_communication()
logging.shutdown()