Skip to content

Commit

Permalink
Making Sender::isPaused() and Sender::isTransmitting() const.
Browse files Browse the repository at this point in the history
  • Loading branch information
ssilverman committed Jan 22, 2019
1 parent 611397a commit ca67a74
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Sender.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ void Sender::resumeFor(int n, void (*doneTXFunc)(Sender *s)) {
enableIRQs();
}

bool Sender::isTransmitting() {
bool Sender::isTransmitting() const {
// Check these both atomically
disableIRQs();
//{
Expand Down
4 changes: 2 additions & 2 deletions src/TeensyDMX.h
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,7 @@ class Sender final : public TeensyDMX {
// Returns whether we are currently paused. This will occur after pause()
// is called and after any "resumed" messages are sent. Note that it is
// possible that a packet is still in the middle of being transmitted.
bool isPaused() {
bool isPaused() const {
return paused_;
}

Expand Down Expand Up @@ -527,7 +527,7 @@ class Sender final : public TeensyDMX {
//
// An alternative to this function is to use onDoneTransmitting to be
// notified when transmission is complete.
bool isTransmitting();
bool isTransmitting() const;

// Sets the function to call when the sender is paused and transmission
// of the current packet is done. This can be used instead of polling
Expand Down

0 comments on commit ca67a74

Please sign in to comment.