-
Notifications
You must be signed in to change notification settings - Fork 15
Open
Description
Lines 173 to 187 in b1a57aa
| /******************************************************************************* | |
| Description: Reads the current positon of the channel in counts. Value is a | |
| 32 bit unsigned interger and will roll under/over at 0xFFFFFFFF | |
| Parameters: -none | |
| Returns: -int current position in counts | |
| Example Code: | |
| *******************************************************************************/ | |
| int P1_HSC_Channel::readPosition(void){ | |
| return (int)P1.readAnalog(slotNumber,channelNumber); | |
| } |
This function returns an int when the function header says it will return an unsigned int. I'm not sure if the rollover will work properly this way. Can you please advise?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels