You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You have an arithmetic overflow causing the SD card size to be shown incorrectly.
ez.canvas.print("SD size:"); ez.canvas.x(tab); ez.canvas.println(String((long)SD.cardSize() / 1000000) + " MB");
Should be:
ez.canvas.print("SD size:"); ez.canvas.x(tab); ez.canvas.println(String((long)(SD.cardSize() / 1000000)) + " MB");
The cast (long) need to be done after dividing by 1000000, not before.
The text was updated successfully, but these errors were encountered:
You have an arithmetic overflow causing the SD card size to be shown incorrectly.
ez.canvas.print("SD size:"); ez.canvas.x(tab); ez.canvas.println(String((long)SD.cardSize() / 1000000) + " MB");
Should be:
ez.canvas.print("SD size:"); ez.canvas.x(tab); ez.canvas.println(String((long)(SD.cardSize() / 1000000)) + " MB");
The cast (long) need to be done after dividing by 1000000, not before.
The text was updated successfully, but these errors were encountered: