From df6ce3af067af64fd160f44fd91e5de63a2fa8e1 Mon Sep 17 00:00:00 2001 From: Simon Stuerz Date: Sat, 24 Aug 2013 13:29:09 +0200 Subject: [PATCH] play with the interrupt --- hive/server/hive_pi/radio/radioreciver.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/hive/server/hive_pi/radio/radioreciver.cpp b/hive/server/hive_pi/radio/radioreciver.cpp index 26a4df5a..c2e4450a 100644 --- a/hive/server/hive_pi/radio/radioreciver.cpp +++ b/hive/server/hive_pi/radio/radioreciver.cpp @@ -18,6 +18,11 @@ RadioReciver::RadioReciver(QObject *parent) : } void RadioReciver::handleInterrupt() +{ + +} + +void RadioReciver::handleRC433Interrupt() { if(!m_enable){ return; @@ -58,11 +63,6 @@ void RadioReciver::handleInterrupt() lastTime = time; } -void RadioReciver::handleRC433Interrupt() -{ - -} - void RadioReciver::handleRC868Interrupt() { @@ -276,7 +276,7 @@ void RadioReciver::setFrequency(RadioReciver::Frequency frequency) } m_pin433 = 2; pinMode(m_pin433,INPUT); - wiringPiISR(m_pin433, INT_EDGE_BOTH, handleInterrupt); + wiringPiISR(m_pin433, INT_EDGE_BOTH, &handleRC433Interrupt); qDebug() << "GPIO setup for 433.92 MHz receiver ok."; } if(frequency == RadioReciver::RF868MHz){