Level: Moderator
Joined: Mon. Mar 19, 2007
Location: Long Island New York
Posted by jgmdesign:
Thu. Dec 10, 2020 - 05:10 PM
I received the following following a build:

In teh FOR loop I have this:

And for 'adc_avg_array I have:
uint16_t adc_avg_array[16]; //16 element storage of ADC readings
I set up a 16 element array of unsigned integers as the ADC result is 12 bits.
As I try and figure out whats up, anyone have any ideas why I am getting this warning? I follow Johans belief that Warnings are potential errors so I really would like this to build clean of course.
JIm
This topic has a solution. Jump to the solution.
I would rather attempt something great and fail, than attempt nothing and succeed - Fortune Cookie
"The critical shortage here is not stuff, but time." - Johan Ekdahl
"Step N is required before you can do step N+1!" - ka7ehk
"If you want a career with a known path - become an undertaker. Dead people don't sue!" - Kartman
"Why is there a "Highway to Hell" and only a "Stairway to Heaven"? A prediction of the expected traffic load?" - Lee "theusch"
Speak sweetly. It makes your words easier to digest when at a later date you have to eat them ;-) - Source Unknown
Please Read: Code-of-Conduct
Atmel Studio6.2/AS7, DipTrace, Quartus, MPLAB, RSLogix user
Tags:
Last Edited: Thu. Dec 10, 2020 - 05:51 PM