Skip to content

Commit

Permalink
mark param unused
Browse files Browse the repository at this point in the history
  • Loading branch information
runger1101001 committed Sep 12, 2023
1 parent 5ef4d9d commit 132e7b0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/current_sense/hardware_specific/rp2040/rp2040_mcu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ float _readADCVoltageInline(const int pinA, const void* cs_params) {
// return readings from the same ADC conversion run. The ADC on RP2040 is anyway in round robin mode :-(
// like this we either have to block interrupts, or of course have the chance of reading across
// new ADC conversions, which probably won't improve the accuracy.
_UNUSED(cs_params);

if (pinA>=26 && pinA<=29 && engine.channelsEnabled[pinA-26]) {
return engine.lastResults.raw[pinA-26]*engine.adc_conv;
Expand All @@ -36,6 +37,8 @@ float _readADCVoltageInline(const int pinA, const void* cs_params) {


void* _configureADCInline(const void *driver_params, const int pinA, const int pinB, const int pinC) {
_UNUSED(driver_params);

if( _isset(pinA) )
engine.addPin(pinA);
if( _isset(pinB) )
Expand Down

0 comments on commit 132e7b0

Please sign in to comment.