summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2020-03-12 12:34:31 +1100
committerDamien George <damien.p.george@gmail.com>2020-03-12 12:34:31 +1100
commiteae495a7147983267371b09ea606977efa9111a5 (patch)
treeac1929b0dfaa9456ada8709122d9bb3ec1c17e9c
parentbaf8aa286af1af2ddf0179b82b3411d45f513b23 (diff)
stm32/main: Fix bug mounting 3rd SD partition.
Fixes issue #5753.
-rw-r--r--ports/stm32/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ports/stm32/main.c b/ports/stm32/main.c
index 1bda96490..e4f785382 100644
--- a/ports/stm32/main.c
+++ b/ports/stm32/main.c
@@ -260,7 +260,7 @@ STATIC bool init_sdcard_fs(void) {
// subsequent partitions are numbered by their index in the partition table
if (part_num == 2) {
vfs->str = "/sd2";
- } else if (part_num == 2) {
+ } else if (part_num == 3) {
vfs->str = "/sd3";
} else {
vfs->str = "/sd4";