improved bus wait with raii class that updates last access
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
|
||||
#include <DebugLog.h>
|
||||
#include <RS485_Driver.h>
|
||||
#include <utils.h>
|
||||
|
||||
namespace drivers
|
||||
{
|
||||
@@ -13,7 +14,7 @@ namespace drivers
|
||||
private:
|
||||
const uint8_t c_maxRetries = 5;
|
||||
const uint8_t c_dataWords = 2;
|
||||
const uint32_t c_minDelay = 500;
|
||||
const uint32_t c_minDelay = 100;
|
||||
|
||||
const uint16_t REG_V = 0x100C;
|
||||
const uint16_t REG_A = 0x1016;
|
||||
@@ -74,7 +75,6 @@ namespace drivers
|
||||
void resetPartialCounters();
|
||||
|
||||
private:
|
||||
void delayRequest();
|
||||
float_t readFloatReg(const uint16_t reg);
|
||||
|
||||
private:
|
||||
|
||||
Reference in New Issue
Block a user