[-]
[+]
|
Changed |
_service:tar_git:harbour-ambience-tohkbd2.changes
|
|
[-]
[+]
|
Changed |
_service:tar_git:harbour-ambience-tohkbd2.spec
^
|
|
[-]
[+]
|
Changed |
_service
^
|
@@ -6,7 +6,7 @@
<service name="tar_git">
<param name="url">https://github.com/kimmoli/tohkbd2.git</param>
<param name="branch">master</param>
- <param name="revision">7ffe657f59c9d4d67747e97df325d30d24a546dd</param>
+ <param name="revision">b3fd91f854aeb742d90cd72bdee74e9306e79490</param>
<param name="token"/>
<param name="debian">N</param>
<param name="dumb">N</param>
|
[-]
[+]
|
Changed |
_service:tar_git:harbour-ambience-tohkbd2-0.2.0.1.tar.bz2/daemon/src/keymapping.cpp
^
|
@@ -134,8 +134,6 @@
emit symChanged();
}
- printf("There are %d usage codes to process\n", ir.length());
-
/* Shortcut out if no actual key pressed */
if (ir.length() == 0)
{
|
[-]
[+]
|
Changed |
_service:tar_git:harbour-ambience-tohkbd2-0.2.0.1.tar.bz2/daemon/src/tohkeyboard.cpp
^
|
@@ -349,6 +349,9 @@
*/
void Tohkbd::controlLeds(bool restore)
{
+ if (!vddEnabled) /* No power applied, get out from here */
+ return;
+
if (restore)
{
tca8424->setLeds((keymap->symPressed ? LED_SYMLOCK_ON : LED_SYMLOCK_OFF)
@@ -383,7 +386,11 @@
if (!r.isEmpty())
{
presenceTimer->start();
- keymap->process(r);
+
+ /* Process report only if it has correct length of 11 */
+ if (r.at(0) == 0x0b && r.at(1) == 0x00)
+ keymap->process(r);
+
retries = -1;
}
else
@@ -641,6 +648,9 @@
*/
void Tohkbd::checkDoWeNeedBacklight()
{
+ if (!vddEnabled) /* No power applied, get out from here */
+ return;
+
if (forceBacklightOn)
{
printf("backlight forced on\n");
@@ -657,7 +667,9 @@
tca8424->setLeds(LED_BACKLIGHT_ON);
backlightTimer->start();
- } else {
+ }
+ else
+ {
tca8424->setLeds(LED_BACKLIGHT_OFF);
}
}
@@ -677,6 +689,9 @@
*/
void Tohkbd::backlightTimerTimeout()
{
+ if (!vddEnabled) /* No power applied, get out from here */
+ return;
+
if (!forceBacklightOn)
tca8424->setLeds(LED_BACKLIGHT_OFF);
}
|