Hi can someone explain if there is any difference in pyb.sync() and uos.sync() ?
In the docs it says they synchronize all filesystems.
Do they use the same function?
Difference between pyb.sync and uos.sync
Re: Difference between pyb.sync and uos.sync
Yep - they are identical.
pyb.sync: https://github.com/micropython/micropyt ... pyb.c#L188
uos.sync: https://github.com/micropython/micropyt ... uos.c#L162
Both refer to mod_os_sync_obj, which is implemented here: https://github.com/micropython/micropyt ... .c#L86-L95
pyb.sync: https://github.com/micropython/micropyt ... pyb.c#L188
uos.sync: https://github.com/micropython/micropyt ... uos.c#L162
Both refer to mod_os_sync_obj, which is implemented here: https://github.com/micropython/micropyt ... .c#L86-L95