Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
LaCocoRoco committed Jul 4, 2019
1 parent 28040fe commit 3c69009
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/DataVisualizerDashboardSignal.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,14 @@ void DataVisualizerDashboardSignal::on(void) {
if (!this->visualizer) return;
if (!this->visualizer->handshake) return;

this->visualizer->write(this->id, (uint8_t*) true, 1);
uint8_t value = 1;
this->visualizer->write(this->id, &value, 1);
}

void DataVisualizerDashboardSignal::off(void) {
if (!this->visualizer) return;
if (!this->visualizer->handshake) return;

this->visualizer->write(this->id, (uint8_t*) false, 1);
uint8_t value = 0;
this->visualizer->write(this->id, &value, 1);
}

0 comments on commit 3c69009

Please sign in to comment.