removed return value and changed local variable definition

This commit is contained in:
ModuloFS 2023-10-29 11:14:19 +01:00
parent faf1a48677
commit 4f7dc4fd0e

View File

@ -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]);
} }