os.mkfs() replaced with os.fsformat()

os.mkfs() has been replaced with os.fsformat()

Link explaining the replacement details:
https://forum.pycom.io/topic/3351/new-development-firmware-release-v1-19-0-b1/2

Issue: https://forum.pycom.io/topic/5606/what-happened-to-pin_deepsleep_wakeup/9
This commit is contained in:
AnkithB2020
2020-01-27 15:06:57 +01:00
parent a2d5481e29
commit 23ef8f6c25
3 changed files with 9 additions and 9 deletions

View File

@@ -118,5 +118,5 @@ If you need to remove files from your device you have two options, either connec
```python ```python
import os import os
os.mkfs('/flash') os.fsformat('/flash')
``` ```

View File

@@ -35,7 +35,7 @@ If problems occur within the filesystem or you wish to factory reset your module
```python ```python
>>> import os >>> import os
>>> os.mkfs('/flash') >>> os.fsformat('flash')
``` ```
{{% hint style="danger" %}} {{% hint style="danger" %}}
@@ -59,4 +59,3 @@ A hard reset is the same as performing a power cycle to the device. In order to
>>> import machine >>> import machine
>>> machine.reset() >>> machine.reset()
``` ```

View File

@@ -72,8 +72,11 @@ To transfer the firmware files onto the SD card you have two options:
from machine import SD from machine import SD
sd = SD() sd = SD()
os.mkfs(sd) # format SD card os.fsformat('/sd') # format SD card
os.mount(sd, '/sd') # mount it from machine import SD
sd = SD()
fs = os.mkfat(sd)
os.mount(fs, '/sd') # mount it
os.listdir('/sd') # list its content os.listdir('/sd') # list its content
``` ```
@@ -267,5 +270,3 @@ The latest version of the `sqnsupgrade` class has a few additional features that
#### sqnsupgrade.run(load_fff=True) #### sqnsupgrade.run(load_fff=True)
New optional command line option load_fff for the sqnsupgrade.run() command. This is designed to be an internal flag. And should only applied when advised by pycom support. New optional command line option load_fff for the sqnsupgrade.run() command. This is designed to be an internal flag. And should only applied when advised by pycom support.