diff options
| author | mark9064 <30447455+mark9064@users.noreply.github.com> | 2024-04-18 18:54:07 +0100 |
|---|---|---|
| committer | JF <JF002@users.noreply.github.com> | 2024-05-01 16:13:47 +0200 |
| commit | 7a9211587aa17b23b9ff5121abc4f4eca63996d8 (patch) | |
| tree | 901d2ad75e59f34e65b06f67912ceb4811ff6463 /src/drivers/SpiMaster.h | |
| parent | 24e6a2f8abab219868cb2eb6d02b3d83504c223c (diff) | |
Rename to pre-transaction hook
Diffstat (limited to 'src/drivers/SpiMaster.h')
| -rw-r--r-- | src/drivers/SpiMaster.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/drivers/SpiMaster.h b/src/drivers/SpiMaster.h index 2f39a1b2..af38e87b 100644 --- a/src/drivers/SpiMaster.h +++ b/src/drivers/SpiMaster.h @@ -32,7 +32,7 @@ namespace Pinetime { SpiMaster& operator=(SpiMaster&&) = delete; bool Init(); - bool Write(uint8_t pinCsn, const uint8_t* data, size_t size, const std::function<void()>& transactionHook); + bool Write(uint8_t pinCsn, const uint8_t* data, size_t size, const std::function<void()>& preTransactionHook); bool Read(uint8_t pinCsn, uint8_t* cmd, size_t cmdSize, uint8_t* data, size_t dataSize); bool WriteCmdAndBuffer(uint8_t pinCsn, const uint8_t* cmd, size_t cmdSize, const uint8_t* data, size_t dataSize); |
