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
#ifdef LPOTIS
int readLPoti(){
void readLPoti(){
for(int i= 0;i<LPotis; i++){
int var = analogRead(LPotiPins[i][0])+margin;
int pos = 1024/(LPotiPins[i][1]-1);
@ -808,10 +808,11 @@ int readLPoti(){
#ifdef AINPUTS
int readAInputs(){
void readAInputs(){
unsigned long var = 0;
for(int i= 0;i<AInputs; i++){
unsigned long var = 0;
for(int d= 0;d<smooth; d++){// take couple samples to denoise signal
var = var+ analogRead(AInPinmap[i]);
}