diff --git a/arduino-0022-linux-x64/arduino b/arduino-0022-linux-x64/arduino index d371e76..0309680 100755 --- a/arduino-0022-linux-x64/arduino +++ b/arduino-0022-linux-x64/arduino @@ -3,6 +3,9 @@ APPDIR="$(dirname -- $(readlink -f -- "${0}") )" cd $APPDIR + +# Fix for F14 +CLASSPATH="${CLASSPATH}:/usr/share/java/RXTXcomm.jar" for LIB in \ java/lib/rt.jar \ diff --git a/arduino-0022-linux-x64/hardware/arduino/cores/arduino/wiring.c b/arduino-0022-linux-x64/hardware/arduino/cores/arduino/wiring.c index b90d07e..26f5ad5 100644 --- a/arduino-0022-linux-x64/hardware/arduino/cores/arduino/wiring.c +++ b/arduino-0022-linux-x64/hardware/arduino/cores/arduino/wiring.c @@ -23,6 +23,7 @@ */ #include "wiring_private.h" +#include // the prescaler is set so that timer0 ticks every 64 clock cycles, and the // the overflow handler is called every 256 ticks. @@ -104,6 +105,7 @@ unsigned long micros() { void delay(unsigned long ms) { +/* uint16_t start = (uint16_t)micros(); while (ms > 0) { @@ -112,6 +114,8 @@ void delay(unsigned long ms) start += 1000; } } +*/ + _delay_ms(ms); } /* Delay for the given number of microseconds. Assumes a 8 or 16 MHz clock. */