Skip to content

Commit

Permalink
Merge pull request #42 from alex-taffe/receive-spelling-fix
Browse files Browse the repository at this point in the history
Fix the spelling of receive
  • Loading branch information
colemancda authored Sep 14, 2024
2 parents 372fd17 + 202263d commit 879f085
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Sources/BluetoothLinux/HCI/DevicePollEvent.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import SystemPackage

public extension HostController {

func recieve<Event>(_ eventType: Event.Type) async throws -> Event where Event: HCIEventParameter, Event.HCIEventType == HCIGeneralEvent {
func receive<Event>(_ eventType: Event.Type) async throws -> Event where Event: HCIEventParameter, Event.HCIEventType == HCIGeneralEvent {
var newFilter = HCISocketOption.Filter()
newFilter.setPacketType(.event)
newFilter.setEvent(Event.event)
Expand Down
2 changes: 1 addition & 1 deletion Sources/BluetoothLinux/L2CAP/L2CAPSocket.swift
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ public struct L2CAPSocket: Bluetooth.L2CAPSocket {
}

/// Reads from the socket.
public func recieve(_ bufferSize: Int) async throws -> Data {
public func receive(_ bufferSize: Int) async throws -> Data {
return try await socket.read(bufferSize)
}

Expand Down
4 changes: 2 additions & 2 deletions Sources/BluetoothLinux/SocketOption.swift
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ public enum BluetoothSocketOption: CInt, SocketOptionID {
/// Bluetooth Socket Send MTU
case sendMTU = 12 // BT_SNDMTU

/// Bluetooth Socket Recieve MTU
case recieveMTU = 13 // BT_RCVMTU
/// Bluetooth Socket Receive MTU
case receiveMTU = 13 // BT_RCVMTU

/// Bluetooth Phy
case phy = 14 // BT_PHY
Expand Down

0 comments on commit 879f085

Please sign in to comment.