Skip to content

Commit

Permalink
Disabled initial LED test
Browse files Browse the repository at this point in the history
  • Loading branch information
tomek-szczesny committed May 6, 2021
1 parent a27a927 commit 7fd0991
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions sw/src/pistackmond.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -419,12 +419,14 @@ void PWM() {
static_cast<uint32_t>(pwm_lsb_period*std::pow(2,i))));
}

/*
// Initial LED test
for (int i = 0; i < 16; i++) {
sendFrame16(1 << i);
commitFrame();
std::this_thread::sleep_for(150ms);
}
*/

while (!pwm_closing) {
if (pwm_data_mutex.try_lock()){
Expand Down Expand Up @@ -481,6 +483,7 @@ int main(int argc, char*argv[]) {
exit(0);
}
}

// An exact time to gather measurement data and update pwm values
// refresh_rate determines its frequency.
auto next_refresh = std::chrono::high_resolution_clock::now();
Expand Down

0 comments on commit 7fd0991

Please sign in to comment.