-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(base_peripheral): Allow delay in separated write then read
* Add `separate_write_then_read_delay` (default 0) into `BasePeripheral::Config` * Add `void set_separate_write_then_read_delay(...)` public method * In `write_then_read(...)`, if using separate `write` then `read`, use `std::this_thread::sleep_for(...)` if the configured delay is > 0
- Loading branch information
Showing
2 changed files
with
26 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
idf_component_register( | ||
INCLUDE_DIRS "include" | ||
REQUIRES base_component) | ||
REQUIRES base_component pthread) |
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