Skip to content

Commit

Permalink
add explicit cast
Browse files Browse the repository at this point in the history
  • Loading branch information
finger563 committed Feb 12, 2024
1 parent 40cf3e0 commit 66cf810
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/adc/include/continuous_adc.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ class ContinuousAdc : public espp::BaseComponent {
#if !CONFIG_IDF_TARGET_ESP32
if (output_format_ == ADC_DIGI_OUTPUT_FORMAT_TYPE2) {
if (check_valid_data(p)) {
auto unit = p->type2.unit;
auto unit = (adc_unit_t)p->type2.unit;
auto channel = (adc_channel_t)p->type2.channel;
auto data = p->type2.data;
auto id = get_id(unit, channel);
Expand Down

0 comments on commit 66cf810

Please sign in to comment.