Skip to content

Commit 0994853

Browse files
committed
forgotten debugging code
1 parent 6019e9d commit 0994853

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

src/current_sense/hardware_specific/samd_mcu.cpp

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,10 @@
55
#define _ADC_VOLTAGE 3.3f
66
#define _ADC_RESOLUTION 1024.0f
77

8-
// function reading an ADC value and returning the read voltage
9-
float _readADCVoltageInline(const int pinA, const void* cs_params){
10-
digitalWrite(7,HIGH);
11-
uint32_t raw_adc = analogRead(pinA);
12-
digitalWrite(7,LOW);
13-
return raw_adc * ((GenericCurrentSenseParams*)cs_params)->adc_voltage_conv;
14-
}
15-
168
// function reading an ADC value and returning the read voltage
179
void* _configureADCInline(const void* driver_params, const int pinA,const int pinB,const int pinC){
1810
_UNUSED(driver_params);
19-
pinMode(7,OUTPUT);
20-
pinMode(pinA, INPUT);
11+
pinMode(pinA, INPUT);
2112
pinMode(pinB, INPUT);
2213
if( _isset(pinC) ) pinMode(pinC, INPUT);
2314

0 commit comments

Comments
 (0)