Changeset 15331
- Timestamp:
- 04/20/12 01:22:33 (11 years ago)
- Location:
- titan
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
titan/plugins/rgui/rgui.h
r15265 r15331 106 106 } 107 107 108 //clear screen 109 drawscreen(skin, 0); 108 110 if(textbox(_("Message"), _("Send remote box into standby ?"), _("OK"), getrcconfigint("rcok", NULL), _("EXIT"), getrcconfigint("rcexit", NULL), NULL, 0, NULL, 0, 600, 200, 0, 0) == 1) 109 111 { 110 tmpstr = (unsigned char*)getrcconfig("rcpower", NULL); 111 if(tmpstr != NULL) 112 { 113 memcpy(buf, tmpstr, strlen((char*)tmpstr)); 114 ret = socksend(&sock, buf, 6, 1000 * 1000); 115 free(tmpstr); tmpstr = NULL; 116 memset(buf, 0, 10); 117 usleep(5000); 118 } 112 memcpy(buf, "98989", 5); 113 ret = socksend(&sock, buf, 6, 1000 * 1000); 114 memset(buf, 0, 10); 115 usleep(5000); 119 116 } 120 117 -
titan/titan/rguid.h
r15143 r15331 40 40 debug(250, "got keycode %d\n", keycode); 41 41 42 if(status.standby == 0 && keycode == getrcconfigint("rcpower", NULL))42 if(status.standby == 0 && keycode == 98989) 43 43 { 44 44 int i = 0;
Note: See TracChangeset
for help on using the changeset viewer.