Hi Folks,
This is my 1st post here so treat me gently! I'm finishing a project, and want to eliminate all warnings & errors from the build in IAR workbench. It persistently gives the warning:
Warning[Pe069]: integer conversion resulted in truncation
There was a thread recently on this, but my cause looks different to that. The offending line is:
P1DIR = activate_sounder + data_out_yled + batt_load + snd_tem;
If one of the definitions is removed from the list, the warning goes. The program as a whole works very well, but having an unexplained warning bothers me.
Defines are:
#define opt_adc 0x01
#define data_in 0x02
#define data_out_yled 0x04
#define batt_load 0x10
#define snd_300khz 0x08
#define batt_adc 0x20
#define heat_adc 0x40
#define activate_sounder 0x80
Simple stuff... there are PxDIR statements for other ports but only this one gives a warning. Can anyone else drop those lines in a see if the same result happens?
Thanks,
Rob.