1
0
Fork 0

return the calculated value that was actually set

This commit is contained in:
Kevin Matz 2023-04-14 09:53:30 -04:00
parent 7fa3bde8b3
commit 1bf3f23a66
2 changed files with 8 additions and 4 deletions

View File

@ -176,10 +176,12 @@ double Widget::txBreakTime() const
/**
* @brief Widget::setTxBreakTime
* @param time
* @return
*/
void Widget::setTxBreakTime(double time)
double Widget::setTxBreakTime(double time)
{
setTxBreakIntervals(time / Pro::DMX_BREAK_INTERVAL);
return txBreakTime();
}
@ -210,10 +212,12 @@ double Widget::txMabTime() const
/**
* @brief Widget::setTxMabTime
* @param time
* @return
*/
void Widget::setTxMabTime(double time)
double Widget::setTxMabTime(double time)
{
setTxMabIntervals(time / Pro::DMX_MAB_INTERVAL);
return txMabTime();
}

View File

@ -62,11 +62,11 @@ public:
uint16_t firmwareVersion() const;
double txBreakTime() const;
void setTxBreakTime(double);
double setTxBreakTime(double);
void setTxBreakIntervals(uint8_t);
double txMabTime() const;
void setTxMabTime(double);
double setTxMabTime(double);
void setTxMabIntervals(uint8_t);
uint8_t txRate() const;