25-02-2017, 06:43
I'm a newbi at this, but after loading only the libraries that came with release 1.0 of the pro plus RX software, I get a bunch of warnings, which are mostly redefined variables.
Chris.
Chris.
Code:
C:\Users\chris\Documents\Arduino\WeatherDuino_Pro2_v2.0_20170113\WeatherDuino_Pro2\v2.0\software\RX software\WeatherDuino_Pro2_RX_v2.0_b019\Data_Log.ino: In function 'void ArchiveToFlash(unsigned int, unsigned int)':
C:\Users\chris\Documents\Arduino\WeatherDuino_Pro2_v2.0_20170113\WeatherDuino_Pro2\v2.0\software\RX software\WeatherDuino_Pro2_RX_v2.0_b019\Data_Log.ino:29:33: warning: narrowing conversion of '(Unit[0].TX_Units::Wind_dir / 225u)' from 'uint16_t {aka unsigned int}' to 'byte {aka unsigned char}' inside { } [-Wnarrowing]
Unit[WIND_OutUnit].Wind_dir / 225,
^
C:\Users\chris\Documents\Arduino\WeatherDuino_Pro2_v2.0_20170113\WeatherDuino_Pro2\v2.0\software\RX software\WeatherDuino_Pro2_RX_v2.0_b019\Data_Log.ino:30:33: warning: narrowing conversion of '(Unit[0].TX_Units::Wind_dir / 225u)' from 'uint16_t {aka unsigned int}' to 'byte {aka unsigned char}' inside { } [-Wnarrowing]
Unit[WIND_OutUnit].Wind_dir / 225,
^
In file included from C:\Users\chris\Documents\Arduino\libraries\DataFlash\DataFlash.cpp:66:0:
C:\Users\chris\Documents\Arduino\libraries\DataFlash\DataFlashCommands.h:124:0: warning: "DATAFLASH_ERASE_SECTOR_PROTECTION_REGISTER_0" redefined
#define DATAFLASH_ERASE_SECTOR_PROTECTION_REGISTER_0 0x2A
^
C:\Users\chris\Documents\Arduino\libraries\DataFlash\DataFlashCommands.h:123:0: note: this is the location of the previous definition
#define DATAFLASH_ERASE_SECTOR_PROTECTION_REGISTER_0 0x3D
^
C:\Users\chris\Documents\Arduino\libraries\DataFlash\DataFlashCommands.h:125:0: warning: "DATAFLASH_ERASE_SECTOR_PROTECTION_REGISTER_0" redefined
#define DATAFLASH_ERASE_SECTOR_PROTECTION_REGISTER_0 0x7F
^
C:\Users\chris\Documents\Arduino\libraries\DataFlash\DataFlashCommands.h:124:0: note: this is the location of the previous definition
#define DATAFLASH_ERASE_SECTOR_PROTECTION_REGISTER_0 0x2A
^
C:\Users\chris\Documents\Arduino\libraries\DataFlash\DataFlashCommands.h:126:0: warning: "DATAFLASH_ERASE_SECTOR_PROTECTION_REGISTER_0" redefined
#define DATAFLASH_ERASE_SECTOR_PROTECTION_REGISTER_0 0xCF
^
C:\Users\chris\Documents\Arduino\libraries\DataFlash\DataFlashCommands.h:125:0: note: this is the location of the previous definition
#define DATAFLASH_ERASE_SECTOR_PROTECTION_REGISTER_0 0x7F
^
