From 1c5427602143825fba2a3d75648f837a297690c1 Mon Sep 17 00:00:00 2001 From: KonstantinKondrashov Date: Wed, 3 Mar 2021 16:57:35 +0800 Subject: [PATCH] otatool: Fixes read_ota_partition cmd, required output arg Closes: https://github.com/espressif/esp-idf/issues/6559 --- docs/en/api-reference/system/ota.rst | 2 +- docs/zh_CN/api-reference/system/ota.rst | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/en/api-reference/system/ota.rst b/docs/en/api-reference/system/ota.rst index a6a7ffc15a..a3a7077f9b 100644 --- a/docs/en/api-reference/system/ota.rst +++ b/docs/en/api-reference/system/ota.rst @@ -282,7 +282,7 @@ The command-line interface of `otatool.py` has the following structure: otatool.py --port "/dev/ttyUSB1" switch_ota_partition --slot 1 # Read OTA partition 'ota_3' and save contents to a file named 'ota_3.bin' - otatool.py --port "/dev/ttyUSB1" read_ota_partition --name=ota_3 + otatool.py --port "/dev/ttyUSB1" read_ota_partition --name=ota_3 --output=ota_3.bin More information can be obtained by specifying `--help` as argument: diff --git a/docs/zh_CN/api-reference/system/ota.rst b/docs/zh_CN/api-reference/system/ota.rst index 41ed0bcb7e..0fffb441d7 100644 --- a/docs/zh_CN/api-reference/system/ota.rst +++ b/docs/zh_CN/api-reference/system/ota.rst @@ -1 +1 @@ -.. include:: ../../../en/api-reference/system/ota.rst \ No newline at end of file +.. include:: ../../../en/api-reference/system/ota.rst