diff options
| author | mark9064 <30447455+mark9064@users.noreply.github.com> | 2024-04-11 00:03:36 +0100 |
|---|---|---|
| committer | JF <JF002@users.noreply.github.com> | 2024-05-01 16:13:47 +0200 |
| commit | 24e6a2f8abab219868cb2eb6d02b3d83504c223c (patch) | |
| tree | bf1707edcdb0d5406d55e22a238abc31464d7665 /src/drivers/St7789.h | |
| parent | 9a7ba405e1384510f92f68e75b4bb54218f637c3 (diff) | |
Avoid storing lambda
Diffstat (limited to 'src/drivers/St7789.h')
| -rw-r--r-- | src/drivers/St7789.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/drivers/St7789.h b/src/drivers/St7789.h index 5eb60cfd..f49ed511 100644 --- a/src/drivers/St7789.h +++ b/src/drivers/St7789.h @@ -47,7 +47,7 @@ namespace Pinetime { void SetVdv(); void WriteCommand(uint8_t cmd); void WriteCommand(const uint8_t* data, size_t size); - void WriteSpi(const uint8_t* data, size_t size, std::function<void(bool)> TransactionHook); + void WriteSpi(const uint8_t* data, size_t size, const std::function<void()>& transactionHook); enum class Commands : uint8_t { SoftwareReset = 0x01, |
