1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-12-01 06:22:55 +01:00

Morpheuz support: Fix 3.1 compatibility

This commit is contained in:
Andreas Shimokawa 2015-06-07 21:49:05 +02:00
parent 042963f2e2
commit c98716d469

View File

@ -27,6 +27,7 @@ public class MorpheuzSupport {
public static final int KEY_VERSION = 6; public static final int KEY_VERSION = 6;
public static final int KEY_GONEOFF = 7; public static final int KEY_GONEOFF = 7;
public static final int KEY_TRANSMIT = 8; public static final int KEY_TRANSMIT = 8;
public static final int KEY_AUTO_RESET = 9;
public static final int CTRL_TRANSMIT_DONE = 1; public static final int CTRL_TRANSMIT_DONE = 1;
public static final int CTRL_VERSION_DONE = 2; public static final int CTRL_VERSION_DONE = 2;
@ -135,6 +136,9 @@ public class MorpheuzSupport {
LOG.info("got base: " + recording_base_timestamp); LOG.info("got base: " + recording_base_timestamp);
ctrl_message = MorpheuzSupport.CTRL_VERSION_DONE | MorpheuzSupport.CTRL_SET_LAST_SENT | MorpheuzSupport.CTRL_DO_NEXT; ctrl_message = MorpheuzSupport.CTRL_VERSION_DONE | MorpheuzSupport.CTRL_SET_LAST_SENT | MorpheuzSupport.CTRL_DO_NEXT;
break; break;
case KEY_AUTO_RESET:
ctrl_message = MorpheuzSupport.CTRL_VERSION_DONE | MorpheuzSupport.CTRL_SET_LAST_SENT | MorpheuzSupport.CTRL_DO_NEXT;
break;
default: default:
LOG.info("unhandled key: " + pair.first); LOG.info("unhandled key: " + pair.first);
break; break;