mirror of
https://github.com/esp8266/Arduino.git
synced 2025-06-17 22:23:10 +03:00
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:
@ -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 {
|
||||||
|
Reference in New Issue
Block a user