Skip to content

Commit

Permalink
Raise idle threshold
Browse files Browse the repository at this point in the history
  • Loading branch information
h313 committed Apr 11, 2024
1 parent eedca10 commit 7d3731c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ int main(int argc, char **argv) {
float usage = active_time / (active_time + idle_time);

// Check if usage is idle
if (usage < 0.01f && usage > 0.00f) {
if (usage < 0.05f && usage > 0.00f) {
// Increase trigger count now that idle is detected
output_data.trigger_count += 1;
if (output_data.trigger_count > 0b00001111)
Expand Down

0 comments on commit 7d3731c

Please sign in to comment.