return the calculated value that was actually set
This commit is contained in:
parent
7fa3bde8b3
commit
1bf3f23a66
|
@ -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();
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue