private void UpdateCharacteristic(ICharacteristic characteristic, int amount) { if (amount > _value) { amount = _value; } _value -= amount; characteristic.NotifyOverhead += Characteristic_NotifyOverhead; characteristic.Update(amount); characteristic.NotifyOverhead -= Characteristic_NotifyOverhead; }