From 6acd938e713e99be5ac5f3fb046851583efa8528 Mon Sep 17 00:00:00 2001 From: Tester23 <85486843+openshwprojects@users.noreply.github.com> Date: Mon, 9 Dec 2024 14:08:06 +0100 Subject: [PATCH] comments --- src/selftest/selftest_tuyaMCU.c | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/src/selftest/selftest_tuyaMCU.c b/src/selftest/selftest_tuyaMCU.c index ae944e208..f5d3727ab 100644 --- a/src/selftest/selftest_tuyaMCU.c +++ b/src/selftest/selftest_tuyaMCU.c @@ -593,18 +593,20 @@ void Test_TuyaMCU_Basic() { CMD_ExecuteCommand("uartFakeHex 55AA03070014060000080916000099000023010200040000000310", 0); // above command will just put into buffer - need at least a frame to parse it Sim_RunFrames(100, false); - SELFTEST_ASSERT_CHANNEL(40, 2326); - SELFTEST_ASSERT_CHANNEL(41, 153); - SELFTEST_ASSERT_CHANNEL(42, 35); + SELFTEST_ASSERT_CHANNEL(40, 2326);// voltage + SELFTEST_ASSERT_CHANNEL(41, 153);// current + SELFTEST_ASSERT_CHANNEL(42, 35);// power + // this will write to channel 45, 46 and 47 CMD_ExecuteCommand("linkTuyaMCUOutputToChannel 8 RAW_TAC2121C_VCP 45", 0); CMD_ExecuteCommand("uartFakeHex 55 AA 03 07 00 0C 08 00 00 08 09 01 00 01 2E 00 00 43 A1 ", 0); // above command will just put into buffer - need at least a frame to parse it Sim_RunFrames(100, false); - SELFTEST_ASSERT_CHANNEL(45, 2305); - SELFTEST_ASSERT_CHANNEL(46, 302); - SELFTEST_ASSERT_CHANNEL(47, 67); + SELFTEST_ASSERT_CHANNEL(45, 2305); // voltage + SELFTEST_ASSERT_CHANNEL(46, 302);// current + SELFTEST_ASSERT_CHANNEL(47, 67); // power + SIM_ClearUART(); } #endif