Skip to content

Commit 5e032ec

Browse files
committed
Typos
1 parent 223210e commit 5e032ec

3 files changed

Lines changed: 3 additions & 6 deletions

File tree

Transmission/src/main/java/org/operatorfoundation/transmission/SerialConnection.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ class SerialConnection(private val port: UsbSerialPort, private val connection:
175175
lineBuffer.append(decoded)
176176
}
177177
}
178-
178+
179179
// Timeout occurred
180180
if (lineBuffer.isNotEmpty())
181181
{

Transmission/src/main/java/org/operatorfoundation/transmission/SerialConnectionFactory.kt

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -108,16 +108,14 @@ class SerialConnectionFactory(context: Context)
108108
* Creates a SerialConnection for a device with a specific driver class.
109109
* Useful when the default USB serial prober doesn't detect your device.
110110
*
111-
* @param vendorId USB vendor ID
112-
* @param productId USB product ID
111+
* @param vendorID USB vendor ID
112+
* @param productID USB product ID
113113
* @param driverClass Specific USB serial driver class to use
114-
* @param baudRate Serial communication baud rate
115114
*/
116115
fun createConnectionWithDriver(
117116
vendorID: Int,
118117
productID: Int,
119118
driverClass: Class<out UsbSerialDriver>,
120-
baudRate: Int = DEFAULT_BAUD_RATE
121119
): Flow<ConnectionState>
122120
{
123121
kotlinx.coroutines.GlobalScope.launch {

Transmission/src/main/java/org/operatorfoundation/transmission/SerialReader.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import kotlinx.coroutines.cancelAndJoin
77
import kotlinx.coroutines.isActive
88
import kotlinx.coroutines.launch
99
import kotlinx.coroutines.withContext
10-
import timber.log.Timber
1110

1211
/**
1312
* Helper class for common serial reading patterns.

0 commit comments

Comments
 (0)