5 months ago | Paul Boddie | raw files shortlog changelog graph | Fixed the control pin release operation. | cpm-library-improvements |
pkg/devices/lib/spi/src/hybrid.cc (file) |
1.1 --- a/pkg/devices/lib/spi/src/hybrid.cc Mon Nov 13 01:17:15 2023 +0100 1.2 +++ b/pkg/devices/lib/spi/src/hybrid.cc Mon Nov 13 01:17:58 2023 +0100 1.3 @@ -49,7 +49,7 @@ 1.4 if (_control_alt_func >= 0) 1.5 _control_device->config_pad(_control_pin, Hw::Gpio_chip::Function_alt, _control_alt_func); 1.6 else 1.7 - _control_device->setup(_control_pin, Hw::Gpio_chip::Input, 0); 1.8 + _control_device->setup(_control_pin, Hw::Gpio_chip::Output, 0); 1.9 } 1.10 1.11 /* Send a byte sequence. */