From c81f8d7721cf7f5cf7ac8fe5dd7e4e09e01422bb Mon Sep 17 00:00:00 2001 From: Jamie McCrae Date: Mon, 10 Jul 2023 11:52:04 +0100 Subject: [PATCH] doc: mgmt: mcumgr: Fix double maps Fixes an issue where double maps were shown for some items, and one whereby there was excess text. Signed-off-by: Jamie McCrae --- .../device_mgmt/smp_groups/smp_group_1.rst | 24 +++++++------------ .../device_mgmt/smp_groups/smp_group_8.rst | 1 - 2 files changed, 9 insertions(+), 16 deletions(-) diff --git a/doc/services/device_mgmt/smp_groups/smp_group_1.rst b/doc/services/device_mgmt/smp_groups/smp_group_1.rst index 482361178c6..61622ee71b2 100644 --- a/doc/services/device_mgmt/smp_groups/smp_group_1.rst +++ b/doc/services/device_mgmt/smp_groups/smp_group_1.rst @@ -223,10 +223,8 @@ CBOR data of request: .. code-block:: none { - { - (str,opt)"hash" : (str) - (str)"confirm" : (bool) - } + (str,opt)"hash" : (str) + (str)"confirm" : (bool) } If "confirm" is false or not provided, an image with the "hash" will be set for @@ -267,14 +265,12 @@ CBOR data of request: .. code-block:: none { - { - (str,opt)"image" : (uint) - (str,opt)"len" : (uint) - (str)"off" : (uint) - (str,opt)"sha" : (byte str) - (str,opt)"data" : (byte str) - (str,opt)"upgrade" : (bool) - } + (str,opt)"image" : (uint) + (str,opt)"len" : (uint) + (str)"off" : (uint) + (str,opt)"sha" : (byte str) + (str,opt)"data" : (byte str) + (str,opt)"upgrade" : (bool) } where: @@ -412,9 +408,7 @@ CBOR data of request: .. code-block:: none { - { - (str,opt)"slot" : (uint) - } + (str,opt)"slot" : (uint) } where: diff --git a/doc/services/device_mgmt/smp_groups/smp_group_8.rst b/doc/services/device_mgmt/smp_groups/smp_group_8.rst index 3ed8add1cc8..d86208346f8 100644 --- a/doc/services/device_mgmt/smp_groups/smp_group_8.rst +++ b/doc/services/device_mgmt/smp_groups/smp_group_8.rst @@ -511,7 +511,6 @@ CBOR data of successful response: .. code-block:: none - format (0 = int, 1 = byte array) { (str)"types" : { (str) : {