mirror of
https://github.com/arduino/Arduino.git
synced 2025-03-15 12:29:26 +01:00
Merge pull request #1775 from ribbons/memory-usage
Improve low free memory reporting
This commit is contained in:
commit
d025638c61
@ -1682,7 +1682,7 @@ public class Sketch {
|
|||||||
|
|
||||||
int warnDataPercentage = Integer.parseInt(prefs.get("build.warn_data_percentage"));
|
int warnDataPercentage = Integer.parseInt(prefs.get("build.warn_data_percentage"));
|
||||||
if (maxDataSize > 0 && dataSize > maxDataSize*warnDataPercentage/100)
|
if (maxDataSize > 0 && dataSize > maxDataSize*warnDataPercentage/100)
|
||||||
System.out.println(_("Low memory available, stability problems may occur"));
|
System.err.println(_("Low memory available, stability problems may occur."));
|
||||||
}
|
}
|
||||||
|
|
||||||
protected boolean upload(String buildPath, String suggestedClassName, boolean usingProgrammer) throws Exception {
|
protected boolean upload(String buildPath, String suggestedClassName, boolean usingProgrammer) throws Exception {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user