mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-08 06:08:29 +02:00
Merge branch 'master' of https://github.com/tuxbox-neutrino/gui-neutrino into ni/tuxbox
Origin commit data
------------------
Commit: de1be9b239
Author: vanhofen <vanhofen@gmx.de>
Date: 2017-02-23 (Thu, 23 Feb 2017)
This commit is contained in:
@@ -1382,7 +1382,7 @@ void CRCInput::getMsg_us(neutrino_msg_t * msg, neutrino_msg_data_t * data, uint6
|
||||
}
|
||||
|
||||
uint32_t trkey = translate(ev.code);
|
||||
d_printf("key: %04x value %d, translate: %04x -%s-\n", ev.code, ev.value, trkey, getKeyName(trkey).c_str());
|
||||
printf("key: %04x value %d, translate: %04x -%s-\n", ev.code, ev.value, trkey, getKeyName(trkey).c_str());
|
||||
if (trkey == RC_nokey)
|
||||
continue;
|
||||
|
||||
|
@@ -3808,7 +3808,7 @@ int CNeutrinoApp::handleMsg(const neutrino_msg_t _msg, neutrino_msg_data_t data)
|
||||
return messages_return::handled;
|
||||
}
|
||||
if ((msg >= CRCInput::RC_WithData) && (msg < CRCInput::RC_WithData + 0x10000000)) {
|
||||
INFO("###################################### DELETED msg %x data %x\n", msg, data);
|
||||
INFO("###################################### DELETED msg %lX data %lX\n", msg, data);
|
||||
delete [] (unsigned char*) data;
|
||||
return messages_return::handled;
|
||||
}
|
||||
|
@@ -893,8 +893,8 @@ void CControlAPI::RCEmCGI(CyhookHandler *hh)
|
||||
#endif
|
||||
int evd = open(EVENTDEV, O_RDWR);
|
||||
if (evd < 0) {
|
||||
perror("opening " EVENTDEV " failed");
|
||||
hh->SendError();
|
||||
perror("opening event0 failed");
|
||||
return;
|
||||
}
|
||||
if (rc_send(evd, sendcode, KEY_PRESSED) < 0) {
|
||||
@@ -905,8 +905,8 @@ void CControlAPI::RCEmCGI(CyhookHandler *hh)
|
||||
}
|
||||
if (rc_send(evd, sendcode, KEY_RELEASED) < 0) {
|
||||
perror("writing 'KEY_RELEASED' event failed");
|
||||
close(evd);
|
||||
hh->SendError();
|
||||
close(evd);
|
||||
return;
|
||||
}
|
||||
close(evd);
|
||||
|
@@ -219,7 +219,7 @@ int main (int argc, char **argv){
|
||||
#if defined (EVENTDEV)
|
||||
evd=open (EVENTDEV,O_RDWR);
|
||||
if (evd<0){
|
||||
perror ("opening event0 failed");
|
||||
perror ("opening " EVENTDEV " failed");
|
||||
return 1;
|
||||
}
|
||||
#else
|
||||
|
Reference in New Issue
Block a user