Merge pull request #13 from xuefengedu/master
Correct block display from close to flush
This commit is contained in:
Коммит
3c0aa8a15d
4
files.ts
4
files.ts
|
@ -70,7 +70,7 @@ namespace files {
|
|||
* Flushes all pending write operations to FLASH
|
||||
*/
|
||||
//% blockGap=8
|
||||
//% blockId=fs_file_flush block="%this|close" advanced=true
|
||||
//% blockId=fs_file_flush block="%this|flush" advanced=true
|
||||
public flush(): void {
|
||||
files.fsFlush(this.fd);
|
||||
}
|
||||
|
@ -161,4 +161,4 @@ namespace files {
|
|||
return files.fsRead(this.fd);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче