Skip to content

Commit db5d298

Browse files
committed
alarm connect() returns con
1 parent 8340a8a commit db5d298

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

kit/freq/freq.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -274,8 +274,8 @@ class Freq
274274
return Freq::Time(m_pTimer->ms() - m_ulAlarmTime);
275275
}
276276

277-
void connect(std::function<void()> cb) {
278-
m_pCallback->connect(std::move(cb));
277+
boost::signals2::connection connect(std::function<void()> cb) {
278+
return m_pCallback->connect(std::move(cb));
279279
}
280280
bool poll() {
281281
if(elapsed()) {

0 commit comments

Comments
 (0)