mirror of
https://git.mirrors.martin98.com/https://github.com/luc-github/ESP3D.git
synced 2025-08-03 03:20:38 +08:00
Add refresh if data is not consistent
This commit is contained in:
parent
b618710db4
commit
e3545c8a5e
@ -154,6 +154,9 @@ uint64_t ESP_SD::totalBytes()
|
|||||||
|
|
||||||
uint64_t ESP_SD::usedBytes()
|
uint64_t ESP_SD::usedBytes()
|
||||||
{
|
{
|
||||||
|
if(freeBytes() >totalBytes() ) {
|
||||||
|
_sizechanged = true;
|
||||||
|
}
|
||||||
return totalBytes() - freeBytes();
|
return totalBytes() - freeBytes();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -144,6 +144,9 @@ uint64_t ESP_SD::totalBytes()
|
|||||||
|
|
||||||
uint64_t ESP_SD::usedBytes()
|
uint64_t ESP_SD::usedBytes()
|
||||||
{
|
{
|
||||||
|
if(freeBytes() >totalBytes() ) {
|
||||||
|
_sizechanged = true;
|
||||||
|
}
|
||||||
return totalBytes() - freeBytes();
|
return totalBytes() - freeBytes();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user