Skip to content

Commit 696510f

Browse files
Remove commented out code
1 parent 23216d0 commit 696510f

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

examples/console.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,6 @@ fn build_spi() -> Result<SpidevBus, Box<dyn std::error::Error>> {
3030

3131
fn main() {
3232
let spi = build_spi().unwrap();
33-
// Example of using GPIO pin for chip select:
34-
//const GPIO_CHIP: &str = "/dev/gpiochip0";
35-
//let mut chip = Chip::new(GPIO_CHIP).unwrap();
36-
//let enable_pin = CdevPin::new(chip.get_line(SPI_ENABLE_PIN).unwrap()
37-
// .request(LineRequestFlags::OUTPUT, 1, "pscontroller").unwrap()).unwrap();
38-
//let mut psp = PlayStationPort::new(spi, Some(enable_pin));
3933
let mut psp: PlayStationPort<_, CdevPin> = PlayStationPort::new(spi, None);
4034
let mut command = [0u8; 32];
4135
let mut buffer = [0u8; 32];

0 commit comments

Comments
 (0)