-
Notifications
You must be signed in to change notification settings - Fork 106
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1302 from petermm/optional-device_config
Make SPI device_config optional currently it's a required param, even in a scenario where it's meant to be empty (nif c code handles device_config: [] already) eg device_config: [] is currently required: ``` spi_settings = [ bus_config: [ miso: 19, mosi: 23, sclk: 18, peripheral: "spi3" ], device_config: [] ] spi = :spi.open(spi_settings) :ok = :esp.mount("sdspi", "/test", :fat, spi_host: spi, cs: 5) ``` PR allows leaving out 'device_config: []' - for simpler/better DX. (I wasted a ton of time figuring out the empty device_config array requirement) These changes are made under both the "Apache 2.0" and the "GNU Lesser General Public License 2.1 or later" license terms (dual license). SPDX-License-Identifier: Apache-2.0 OR LGPL-2.1-or-later
- Loading branch information
Showing
3 changed files
with
12 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters