Updated SPATZ to ignore TICK() when disabled

This commit is contained in:
dario
2024-10-09 16:09:37 +02:00
parent b79279dcbc
commit 86b72a2efd
2 changed files with 10 additions and 3 deletions

View File

@@ -45,7 +45,7 @@ namespace sta
* @param buffer The float buffer to write the data to.
* @param length The number of floats to request.
*/
void request(uint8_t id, float * buffer, size_t length);
bool request(uint8_t id, float * buffer, size_t length);
/**
* @brief Request doubles for a specific sensor id via the printable.
@@ -80,6 +80,8 @@ namespace sta
#define STA_SPATZ_INIT(mutex, signal) ((void)0)
#define STA_SPATZ_TICK() ((void)0)
#endif // STA_SPATZ_ENABLED
#endif // STA_CORE_SPATZ_HPP