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 mUartSetting;
    private byte[] mUartBaudrate;

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

    public byte getUartSetting() {
        return mUartSetting;
    }

    public void setUartSetting(byte uartSetting) {
        mUartSetting = uartSetting;
    }

    public byte[] getUartBaudrate() {
        return mUartBaudrate;
    }

    public void setUartBaudrate(byte[] uartBaudrate) {
        mUartBaudrate = uartBaudrate;
    }
}
@@ -258,27 +258,20 @@
 e byte m
-UartSetting
+Mode
 ;%0A    pr
@@ -284,20 +284,16 @@
 byte%5B%5D m
-Uart
 Baudrate
@@ -445,27 +445,20 @@
 byte get
-UartSetting
+Mode
 () %7B%0A   
@@ -470,27 +470,20 @@
 return m
-UartSetting
+Mode
 ;%0A    %7D%0A
@@ -506,74 +506,46 @@
  set
-UartSetting(byte uartSetting) %7B%0A        mUartSetting = uartSetting
+Mode(byte mode) %7B%0A        mMode = mode
 ;%0A  
@@ -570,20 +570,16 @@
 te%5B%5D get
-Uart
 Baudrate
@@ -599,20 +599,16 @@
 return m
-Uart
 Baudrate
@@ -635,20 +635,16 @@
 void set
-Uart
 Baudrate
@@ -651,21 +651,17 @@
 (byte%5B%5D 
-uartB
+b
 audrate)
@@ -672,20 +672,16 @@
        m
-Uart
 Baudrate
@@ -687,13 +687,9 @@
 e = 
-uartB
+b
 audr

Remove prefix and change from settings to mode