Skip to content

Commit

Permalink
fix proto
Browse files Browse the repository at this point in the history
  • Loading branch information
camilo committed May 27, 2024
1 parent 2d9daef commit db1d29c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/include/input.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,8 @@ namespace qOS {
qOS::clock_t tSteadyOff{ 0xFFFFFFFFU };
qOS::clock_t tSteadyBand{ 0xFFFFFFFFU };
uint8_t xChannel;
int riseThreshold;
int fallThreshold;
int riseThreshold{ 800 };
int fallThreshold{ 200 };
int hysteresis{ 20 };
void *userData{ nullptr };
channel( channel const& ) = delete;
Expand Down
6 changes: 3 additions & 3 deletions src/input.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -283,17 +283,17 @@ bool input::watcher::add( channel& c ) noexcept
return nodes.insert( &c );
}
/*============================================================================*/
bool input::watcher::registerEvent( const event e, const eventCallback_t &c, const qOS::duration_t t ) noexcept
bool input::watcher::registerEvent( const event e, const eventCallback_t &f, const qOS::duration_t t ) noexcept
{
bool retValue = true;

if ( input::event::EXCEPTION == e ) {
exception = c;
exception = f;
}
else {
for ( auto i = nodes.begin(); i.untilEnd() ; i++ ) {
input::channel * const n = i.get<input::channel*>();
retValue &= n->registerEvent( e, c, t );
retValue &= n->registerEvent( e, f, t );
}
}

Expand Down

0 comments on commit db1d29c

Please sign in to comment.