Skip to content

Commit

Permalink
Merge pull request #61 from XYOracleNetwork/develop
Browse files Browse the repository at this point in the history
fix and update
  • Loading branch information
Phillip Lorenzo authored Apr 8, 2020
2 parents f452aa6 + 170a141 commit 61c39fd
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ Include the library in your Podfile

```Podfile
target 'YourAppName' do
pod 'sdk-xyo-swift', '1.0.14'
pod 'sdk-xyo-swift', '1.0.16'
```

Expand Down
2 changes: 1 addition & 1 deletion Source/BleInterface/XyoPipeCharacteristic.swift
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ class XyoPipeCharacteristic : XYMutableCharacteristic, XyoGattServerLisitener {
return false
}

let catData = buffer.copyRangeOf(from: 4, toEnd: buffer.getSize())
let catData = buffer.copyRangeOf(from: 4, to: buffer.getSize())
let advPacket = XyoAdvertisePacket(data: catData.toByteArray())
let pipe = XyoGattServerNetworkPipe(initiationData: advPacket,peripheral: peripheral,centrel: request.central, char: cbCharacteristic, listener: self)

Expand Down
2 changes: 1 addition & 1 deletion Source/BleInterface/data/XyoInputStream.swift
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public class XyoInputStream {
/// Checks to see if the currentBuffer is ready to to be added to the donePackets queue.
private func checkDone () {
if (nextWaitingSize ?? 0 <= currentBuffer?.getSize() ?? 4) {
let donePacket = currentBuffer?.copyRangeOf(from: 4, toEnd: (Int(nextWaitingSize ?? 4))).toByteArray() ?? []
let donePacket = currentBuffer?.copyRangeOf(from: 4, to: (Int(nextWaitingSize ?? 4))).toByteArray() ?? []
donePackets.append(donePacket)
}
}
Expand Down
2 changes: 1 addition & 1 deletion sdk-xyo-swift.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

Pod::Spec.new do |s|
s.name = 'sdk-xyo-swift'
s.version = '1.0.15'
s.version = '1.0.16'
s.summary = 'An easy to use XYO Platform wrapper for swift developers.'

s.description = <<-DESC
Expand Down

0 comments on commit 61c39fd

Please sign in to comment.