Skip to content

LowPowerInput panics on pins greater than 14 #3399

@Dominaezzz

Description

@Dominaezzz

Bug description

This code panics

let _xtal_32k = LowPowerInput::<15>::new(peripherals.GPIO15);
====================== PANIC ======================                                                                                                                                                                              
panicked at /home/dominaezzz/.cargo/git/checkouts/esp-pacs-175859a47098a821/2964cc4/esp32s3/src/rtc_io.rs:102:10:                                                                                                                
index out of bounds: the len is 15 but the index is 15                                                                                                                                                                                                                                      

Looks like the PAC needs some love around here.

(I doubt I need to open a separate issue for the const generic 😄)

Expected behavior

It shouldn't panic.

Environment

  • Target device: ESP32-S3
  • Crate name and version: main as of writing.

Metadata

Metadata

Assignees

Labels

bugSomething isn't workinglow powerLight-/Deep-Sleep and co-processor supportperipheral:gpioGPIO peripheral

Type

No type

Projects

Status

Todo

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions