Skip to content

Commit

Permalink
minor safety sheck when looking up partitions
Browse files Browse the repository at this point in the history
  • Loading branch information
ftylitak committed Jul 10, 2024
1 parent 1b511b2 commit e0f277a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion insighioNode/boot.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,9 @@
##################################################################
# setup data paritition
from esp32 import Partition
p = Partition.find(Partition.TYPE_DATA, label='data')[0]
p = Partition.find(Partition.TYPE_DATA, label='data')
if len(p) > 0 :
p = p[0]

try:
if p:
Expand Down

0 comments on commit e0f277a

Please sign in to comment.