We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents db8df15 + a45e4b3 commit 284242dCopy full SHA for 284242d
components/bootloader_support/src/bootloader_random_esp32c6.c
@@ -53,7 +53,7 @@ void bootloader_random_enable(void)
53
54
// create patterns and set them in pattern table
55
uint32_t pattern_one = (SAR2_CHANNEL << 2) | SAR2_ATTEN; // we want channel 9 with max attenuation
56
- uint32_t pattern_two = SAR1_ATTEN; // we want channel 0 with max attenuation, channel doesn't really matter here
+ uint32_t pattern_two = (SAR2_CHANNEL << 2) | SAR1_ATTEN; // we want channel 9 with max attenuation
57
uint32_t pattern_table = 0 | (pattern_two << 3 * PATTERN_BIT_WIDTH) | pattern_one << 2 * PATTERN_BIT_WIDTH;
58
REG_WRITE(APB_SARADC_SAR_PATT_TAB1_REG, pattern_table);
59
0 commit comments