package com.uxxu.konashi.lib.stores;

import com.uxxu.konashi.lib.dispatcher.CharacteristicDispatcher;
import com.uxxu.konashi.lib.dispatcher.UartStoreUpdater;

/**
 * Created by e10dokup on 9/20/15.
 */
public class UartStore implements Store {

    private byte mMode;
    private byte[] mBaudrate;

    public UartStore(CharacteristicDispatcher<UartStore, UartStoreUpdater> dispatcher) {
        dispatcher.setStore(this);
    }

    public byte getMode() {
        return mMode;
    }

    public void setMode(byte mode) {
        mMode = mode;
    }

    public byte[] getBaudrate() {
        return mBaudrate;
    }

    public void setBaudrate(byte[] baudrate) {
        mBaudrate = baudrate;
    }
}
@@ -31,16 +31,53 @@
 tores;%0A%0A
+import com.uxxu.konashi.lib.Konashi;%0A
 import c
@@ -578,32 +578,117 @@
  = mode;%0A    %7D%0A%0A
+    public boolean isEnabled() %7B%0A        return mMode == Konashi.UART_ENABLE;%0A    %7D%0A%0A
     public byte%5B

Add isEnabled method at UartStore