Skip to content

Commit

Permalink
LibAPRS: fix of 'else' branch [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
Linar Yusupov committed Oct 13, 2023
1 parent fea53fb commit a98720b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions software/firmware/source/libraries/LibAPRS_ESP32/AFSK.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,7 @@ void AFSK_hw_init(void)
adc1_config_channel_atten((adc1_channel_t) SPK_PIN, ADC_ATTEN_DB_0); // Input 1.24Vp-p,Use R 47K-(10K//10K) divider input power 1.2Vref
}
} else
#else
#endif /* SOFTRF_SKETCH */
{
#if 1
/* work around wrong R22 value (should be 47K) issue on very first T-TWR Plus batches */
Expand All @@ -400,7 +400,6 @@ void AFSK_hw_init(void)
adc1_config_channel_atten((adc1_channel_t) SPK_PIN, ADC_ATTEN_DB_0); // Input 1.24Vp-p,Use R 47K-(10K//10K) divider input power 1.2Vref
#endif
}
#endif /* SOFTRF_SKETCH */

// esp_adc_cal_get_characteristics(V_REF, ADC_ATTEN_DB_11, ADC_WIDTH_BIT_12, &characteristics);
// Serial.printf("v_ref routed to 3.3V\n");
Expand Down

0 comments on commit a98720b

Please sign in to comment.