removed return value and changed local variable definition
This commit is contained in:
parent
faf1a48677
commit
4f7dc4fd0e
@ -793,7 +793,7 @@ void controlDLED(int Pin, int Stat){
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef LPOTIS
|
#ifdef LPOTIS
|
||||||
int readLPoti(){
|
void readLPoti(){
|
||||||
for(int i= 0;i<LPotis; i++){
|
for(int i= 0;i<LPotis; i++){
|
||||||
int var = analogRead(LPotiPins[i][0])+margin;
|
int var = analogRead(LPotiPins[i][0])+margin;
|
||||||
int pos = 1024/(LPotiPins[i][1]-1);
|
int pos = 1024/(LPotiPins[i][1]-1);
|
||||||
@ -808,10 +808,11 @@ int readLPoti(){
|
|||||||
|
|
||||||
|
|
||||||
#ifdef AINPUTS
|
#ifdef AINPUTS
|
||||||
int readAInputs(){
|
void readAInputs(){
|
||||||
|
unsigned long var = 0;
|
||||||
|
|
||||||
for(int i= 0;i<AInputs; i++){
|
for(int i= 0;i<AInputs; i++){
|
||||||
unsigned long var = 0;
|
|
||||||
for(int d= 0;d<smooth; d++){// take couple samples to denoise signal
|
for(int d= 0;d<smooth; d++){// take couple samples to denoise signal
|
||||||
var = var+ analogRead(AInPinmap[i]);
|
var = var+ analogRead(AInPinmap[i]);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user