1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-06-17 22:23:10 +03:00

Little fixes:

- changing random(max) to use stdlib.h random()
 - not generating .eep files to avoid warning when EEMEM isn't used
 - removing cast macros (since they are automatically defined in C++)
 - writing a digital LOW for PWM value of 0 on pins 5 or 6
This commit is contained in:
David A. Mellis
2008-10-13 15:03:20 +00:00
parent 30dc672dff
commit 2ba54d2cbf
5 changed files with 34 additions and 22 deletions

View File

@ -209,7 +209,10 @@ public class Compiler implements MessageConsumer {
return false;
List commandObjcopy;
/*
// Extract EEPROM data (from EEMEM directive) to .eep file.
// Commented out because it generates a warning if EEMEM isn't used.
commandObjcopy = new ArrayList(baseCommandObjcopy);
commandObjcopy.add(2, "ihex");
commandObjcopy.set(3, "-j");
@ -221,10 +224,11 @@ public class Compiler implements MessageConsumer {
commandObjcopy.add(buildPath + File.separator + sketch.name + ".eep");
if (execAsynchronously(commandObjcopy) != 0)
return false;
*/
commandObjcopy = new ArrayList(baseCommandObjcopy);
commandObjcopy.add(2, "ihex");
commandObjcopy.add(".eeprom");
commandObjcopy.add(".eeprom"); // remove eeprom data
commandObjcopy.add(buildPath + File.separator + sketch.name + ".elf");
commandObjcopy.add(buildPath + File.separator + sketch.name + ".hex");
if (execAsynchronously(commandObjcopy) != 0)