bug fix: SS was not declared in the spi_write_and_read(.. function
Revision 7:efb143ea4191, committed 2019-09-02
- Comitter:
- ssmith73
- Date:
- Mon Sep 02 11:42:58 2019 +0000
- Parent:
- 6:38fa8ac6e43b
- Commit message:
- Bugfix - SS is undeclared in the spi_write_and_read function
Changed in this revision
platform_drivers.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r 38fa8ac6e43b -r efb143ea4191 platform_drivers.cpp --- a/platform_drivers.cpp Fri Aug 30 15:47:06 2019 +0000 +++ b/platform_drivers.cpp Mon Sep 02 11:42:58 2019 +0000 @@ -211,6 +211,8 @@ if (desc) { // Unused variable - fix compiler warning } + //Create the DigitalOut object, based on user-defined chip-select + DigitalOut SS(slave_selects[desc->chip_select]); SS = GPIO_LOW; //!select SS for(size_t byte = 0 ; byte < bytes_number ; byte++)