Other Parts Discussed in Thread: ADS131A04
Hello! I have the following code to read a register from an ADC:
unsigned char b; ADS131A04_read_ADC4(&b);
bool ADS131A04_read_ADC4(unsigned char* readData)
{
unsigned char rxData;
if (ADS131A04_rreg(ADC4_ADDRESS, &rxData) == false)
{
return false;
}
*readData = rxData;
return true;
}
After compiling, I get the following ULP advice for the line "ADS131A04_read_ADC4(&b)":
#2623-D (ULP 5.4) Detected an assignment to a type with size less than int. To avoid unnecessary sign extension, use int-sized types for local varaibles and convert to smaller types for static storage.
I mention that the wiki page does not describe anything about ULP 5.4.
How should this be implemented correctly so that the ULP advice will disappear?
