mirror of
https://github.com/arduino/Arduino.git
synced 2025-02-27 21:54:30 +01:00
fixed warning when comparing pgm_read_word(0) to -1 (thanks, Limor Fried and Phillip Torrone)
This commit is contained in:
parent
e3b89d178d
commit
48ed974834
@ -117,7 +117,7 @@ int main()
|
|||||||
TX_LED_OFF();
|
TX_LED_OFF();
|
||||||
RX_LED_OFF();
|
RX_LED_OFF();
|
||||||
L_LED_OFF();
|
L_LED_OFF();
|
||||||
if (MCUSR_state & (1<<WDRF) && (pgm_read_word(0) != -1)) {
|
if (MCUSR_state & (1<<WDRF) && (pgm_read_word(0) != 0xFFFF)) {
|
||||||
StartSketch(); // if the reset was caused by WDT and if a sketch is already present then run the sketch instead of the bootloader
|
StartSketch(); // if the reset was caused by WDT and if a sketch is already present then run the sketch instead of the bootloader
|
||||||
}
|
}
|
||||||
BOARD_INIT();
|
BOARD_INIT();
|
||||||
@ -126,7 +126,7 @@ int main()
|
|||||||
_inSync = STK_INSYNC;
|
_inSync = STK_INSYNC;
|
||||||
_ok = STK_OK;
|
_ok = STK_OK;
|
||||||
|
|
||||||
if (pgm_read_word(0) != -1)
|
if (pgm_read_word(0) != 0xFFFF)
|
||||||
_ejected = 1;
|
_ejected = 1;
|
||||||
|
|
||||||
for(;;)
|
for(;;)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user