08-04-2016, 06:55
I have tried to update the Rx board but I keep getting the following errors which I don't understand.Can someone please explain?[/quote]
Arduino: 1.6.8 (Windows 8.1), Board: "Arduino Nano, ATmega328"
In file included from sketch\WeatherDuino_Pro2_RX_v2.0_b011.ino.cpp:1:0:
C:\WeatherDuino_Pro2_v2.0_20160321\WeatherDuino_Pro2\v2.0\software\RX software\WeatherDuino_Pro2_RX_v2.0_b011\Routines.ino: In function 'void SystemInit1()':
C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:100:38: error: invalid operands of types 'double' and 'int' to binary 'operator&'
#define lowByte(w) ((uint8_t) ((w) & 0xff))
^
C:\WeatherDuino_Pro2_v2.0_20160321\WeatherDuino_Pro2\v2.0\software\RX software\WeatherDuino_Pro2_RX_v2.0_b011\Routines.ino:9:30: note: in expansion of macro 'lowByte'
ExternalEeprom_write(0x0B, lowByte(LATITUDE)); // EEPROM_LATITUDE_LSB
^
C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:101:40: error: invalid operands of types 'double' and 'int' to binary 'operator>>'
#define highByte(w) ((uint8_t) ((w) >> 8))
^
C:\WeatherDuino_Pro2_v2.0_20160321\WeatherDuino_Pro2\v2.0\software\RX software\WeatherDuino_Pro2_RX_v2.0_b011\Routines.ino:10:30: note: in expansion of macro 'highByte'
ExternalEeprom_write(0x0C, highByte(LATITUDE)); // EEPROM_LATITUDE_MSB
^
C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:100:38: error: invalid operands of types 'double' and 'int' to binary 'operator&'
#define lowByte(w) ((uint8_t) ((w) & 0xff))
^
C:\WeatherDuino_Pro2_v2.0_20160321\WeatherDuino_Pro2\v2.0\software\RX software\WeatherDuino_Pro2_RX_v2.0_b011\Routines.ino:11:30: note: in expansion of macro 'lowByte'
ExternalEeprom_write(0x0D, lowByte(LONGITUDE)); // EEPROM_LONGITUDE_LSB
^
C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:101:40: error: invalid operands of types 'double' and 'int' to binary 'operator>>'
#define highByte(w) ((uint8_t) ((w) >> 8))
^
C:\WeatherDuino_Pro2_v2.0_20160321\WeatherDuino_Pro2\v2.0\software\RX software\WeatherDuino_Pro2_RX_v2.0_b011\Routines.ino:12:30: note: in expansion of macro 'highByte'
ExternalEeprom_write(0x0E, highByte(LONGITUDE)); // EEPROM_LONGITUDE_MSB
^
exit status 1
Error compiling for board Arduino Nano.
Arduino: 1.6.8 (Windows 8.1), Board: "Arduino Nano, ATmega328"
In file included from sketch\WeatherDuino_Pro2_RX_v2.0_b011.ino.cpp:1:0:
C:\WeatherDuino_Pro2_v2.0_20160321\WeatherDuino_Pro2\v2.0\software\RX software\WeatherDuino_Pro2_RX_v2.0_b011\Routines.ino: In function 'void SystemInit1()':
C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:100:38: error: invalid operands of types 'double' and 'int' to binary 'operator&'
#define lowByte(w) ((uint8_t) ((w) & 0xff))
^
C:\WeatherDuino_Pro2_v2.0_20160321\WeatherDuino_Pro2\v2.0\software\RX software\WeatherDuino_Pro2_RX_v2.0_b011\Routines.ino:9:30: note: in expansion of macro 'lowByte'
ExternalEeprom_write(0x0B, lowByte(LATITUDE)); // EEPROM_LATITUDE_LSB
^
C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:101:40: error: invalid operands of types 'double' and 'int' to binary 'operator>>'
#define highByte(w) ((uint8_t) ((w) >> 8))
^
C:\WeatherDuino_Pro2_v2.0_20160321\WeatherDuino_Pro2\v2.0\software\RX software\WeatherDuino_Pro2_RX_v2.0_b011\Routines.ino:10:30: note: in expansion of macro 'highByte'
ExternalEeprom_write(0x0C, highByte(LATITUDE)); // EEPROM_LATITUDE_MSB
^
C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:100:38: error: invalid operands of types 'double' and 'int' to binary 'operator&'
#define lowByte(w) ((uint8_t) ((w) & 0xff))
^
C:\WeatherDuino_Pro2_v2.0_20160321\WeatherDuino_Pro2\v2.0\software\RX software\WeatherDuino_Pro2_RX_v2.0_b011\Routines.ino:11:30: note: in expansion of macro 'lowByte'
ExternalEeprom_write(0x0D, lowByte(LONGITUDE)); // EEPROM_LONGITUDE_LSB
^
C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:101:40: error: invalid operands of types 'double' and 'int' to binary 'operator>>'
#define highByte(w) ((uint8_t) ((w) >> 8))
^
C:\WeatherDuino_Pro2_v2.0_20160321\WeatherDuino_Pro2\v2.0\software\RX software\WeatherDuino_Pro2_RX_v2.0_b011\Routines.ino:12:30: note: in expansion of macro 'highByte'
ExternalEeprom_write(0x0E, highByte(LONGITUDE)); // EEPROM_LONGITUDE_MSB
^
exit status 1
Error compiling for board Arduino Nano.


