rhayes
August 24, 2011, 10:02pm
1
I keep getting this warning.
Initialized variables are placed in flash as constants. Use keyword ‘const’ to remove this warning.
even though the variable is a constant
const BYTE* di_tab[] = { // Digital Inputs
Any ideas how to stop the warning?
Which version of Dynamic C you are using?
Could you please send the code…
rhayes
September 15, 2011, 6:03pm
3
Version 9.62
Code is too large to post
but here is the code pointed to by the first instance of the warning.\
const BYTE* di_tab[] = { // Digital Inputs
&statAlarm, //0 10001
&statLowFlow, //1 10002
&statHighFlow, //2 10003
&statTargetReached, //3 10005
&statPretargetReached, //4 10005
&di_spare, //5 10006 Reserved 67 alarm
&di_spare, //6 10007 Reserved 67 alarm
&statHeld, //7 10008
&statConnected, //8 10009 anybus status
&gateIsClosed, //9 10010 36 code will update
&di_spare, //10 10011 reserve for top gate
&runEnable, //11 10012
&statUMCdown, //12 10013
&keyEnable, //13 10014
};