Skip to content

Commit

Permalink
fully initialize adc_oneshot_unit_init_cfg_#1322 (from @linfan68)
Browse files Browse the repository at this point in the history
  • Loading branch information
phoddie committed Mar 11, 2024
1 parent 15a90eb commit c61adfb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/io/analog/esp32/_analog.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2019-2023 Moddable Tech, Inc.
* Copyright (c) 2019-2024 Moddable Tech, Inc.
*
* This file is part of the Moddable SDK Runtime.
*
Expand Down Expand Up @@ -253,7 +253,7 @@ void xs_analog_constructor_(xsMachine *the)

builtinUsePin(pin);

adc_oneshot_unit_init_cfg_t unit_cfg;
adc_oneshot_unit_init_cfg_t unit_cfg = {0};
adc_oneshot_chan_cfg_t config = {
.bitwidth = ADC_WIDTH,
.atten = ADC_ATTEN_DB_11,
Expand Down

0 comments on commit c61adfb

Please sign in to comment.