mirror of https://github.com/noisymime/Arduino.git
Make the low available memory message a warning
Write the low available memory message to err rather than out so that it appears more like a warning and is more noticeable.
This commit is contained in:
parent
0b72c88b42
commit
6d5431f63c
|
@ -1683,7 +1683,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…
Reference in New Issue