use of nodomain.freeyourgadget.gadgetbridge.deviceevents.GBDeviceEventUpdateDeviceState in project Gadgetbridge by Freeyourgadget.
the class SonyHeadphonesProtocol method handleAck.
private GBDeviceEvent handleAck() {
pendingAcks--;
if (!requestQueue.isEmpty()) {
LOG.debug("Outstanding requests in queue: {}", requestQueue.size());
final Request request = requestQueue.remove();
return new GBDeviceEventSendBytes(request.encode(sequenceNumber));
}
if (GBDevice.State.INITIALIZING.equals(getDevice().getState())) {
return new GBDeviceEventUpdateDeviceState(GBDevice.State.INITIALIZED);
}
return null;
}
Aggregations