Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions usermods/Animated_Staircase/Animated_Staircase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,8 @@ class Animated_Staircase : public Usermod {
digitalWrite(signalPin, HIGH);
delayMicroseconds(10);
digitalWrite(signalPin, LOW);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This line is required to drop signal pin LOW and end transmission. Please revert.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you're right.
It was mistakenly deleted

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've reverted this line and committed this fix as well. Please, have a look.

return pulseIn(echoPin, HIGH, maxTimeUs) > 0;
unsigned long duration = pulseIn(echoPin, HIGH, 30000);
return (duration > 0 && duration < maxTimeUs);
}

bool checkSensors() {
Expand Down Expand Up @@ -564,4 +565,4 @@ const char Animated_Staircase::_togglePower[] PROGMEM = "toggle-on


static Animated_Staircase animated_staircase;
REGISTER_USERMOD(animated_staircase);
REGISTER_USERMOD(animated_staircase);