docs: fix incorrect state reference
The TEST is state I and PERM is state II.
Signed-off-by: Håkon Øye Amundsen <haakon.amundsen@nordicsemi.no>
diff --git a/docs/design.md b/docs/design.md
index de40dd3..a016227 100644
--- a/docs/design.md
+++ b/docs/design.md
@@ -606,10 +606,10 @@
The boot loader swaps the contents of the two image slots for two reasons:
* User has issued a "set pending" operation; the image in the secondary slot
- should be run once (state II) or repeatedly (state III), depending on
+ should be run once (state I) or repeatedly (state II), depending on
whether a permanent swap was specified.
* Test image rebooted without being confirmed; the boot loader should
- revert to the original image currently in the secondary slot (state IV).
+ revert to the original image currently in the secondary slot (state III).
If the image trailers indicates that the image in the secondary slot should be
run, the boot loader needs to copy it to the primary slot. The image currently
@@ -657,7 +657,7 @@
The additional caveats in step 2f are necessary so that the secondary slot image
trailer can be written by the user at a later time. With the image trailer
unwritten, the user can test the image in the secondary slot
-(i.e., transition to state II).
+(i.e., transition to state I).
Note1: If the region being copied contains the last sector, then swap status is
temporarily maintained on scratch for the duration of this operation, always