package com.uxxu.konashi.lib.action;

import android.bluetooth.BluetoothGattService;

import com.uxxu.konashi.lib.KonashiErrorType;
import com.uxxu.konashi.lib.KonashiUUID;

import java.util.UUID;

/**
 * Created by izumin on 9/25/15.
 */
public class HardwareResetAction extends KonashiWriteCharacteristicAction {

    private static final UUID UUID = KonashiUUID.HARDWARE_RESET_UUID;

    public HardwareResetAction(BluetoothGattService service) {
        super(service.getCharacteristic(UUID));
    }

    @Override
    protected void setValue() {
        getCharacteristic().setValue(new byte[]{0x01});
    }

    @Override
    protected KonashiErrorType validate() {
        return KonashiErrorType.NO_ERROR;
    }
}

@@ -191,16 +191,68 @@
 .UUID;%0A%0A
+import info.izumin.android.bletia.BletiaErrorType;%0A%0A
 /**%0A * C
@@ -687,23 +687,22 @@
 otected 
-Konashi
+Bletia
 ErrorTyp

Fix HardwareResetAction#validate()