Commit 8686196d authored by Adam Wujek's avatar Adam Wujek

test_master: add command to read uptime

Signed-off-by: 's avatarAdam Wujek <dev_public@wujek.eu>
parent 29caf2bd
Pipeline #3845 passed with stage
in 1 minute and 12 seconds
......@@ -295,6 +295,14 @@ void user_interaction()
print("TMR_ERROR_CNT: %lu...", *((uint32_t *)read_buf_long));
}
break;
case 'U':
i2c_m_sync_blk_cmd_read(&I2C_0, ADDR_UPTIME_SECS, read_buf_long, &read_buf_len);
if (!oneline) {
check_res_print_error(res);
print("UPTIME_SECS: %lu...", *((uint32_t *)read_buf_long));
}
break;
case 'l':
oneline = 0;
break;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment