This commit is contained in:
callebtc
2025-07-15 16:30:51 +02:00
parent 1ba14a00d4
commit be264aba08
2 changed files with 14 additions and 14 deletions
@@ -107,19 +107,19 @@ class BluetoothConnectionManager(
// Start power manager
powerManager.start()
// // Start server manager
// if (!serverManager.start()) {
// Log.e(TAG, "Failed to start server manager")
// this@BluetoothConnectionManager.isActive = false
// return@launch
// }
// Start server manager
if (!serverManager.start()) {
Log.e(TAG, "Failed to start server manager")
this@BluetoothConnectionManager.isActive = false
return@launch
}
// // Start client manager
// if (!clientManager.start()) {
// Log.e(TAG, "Failed to start client manager")
// this@BluetoothConnectionManager.isActive = false
// return@launch
// }
// Start client manager
if (!clientManager.start()) {
Log.e(TAG, "Failed to start client manager")
this@BluetoothConnectionManager.isActive = false
return@launch
}
Log.i(TAG, "Bluetooth services started successfully")
}
@@ -237,7 +237,7 @@ class CashuService {
memo = sendMemo,
amountSplitTarget = FfiSplitTarget.DEFAULT,
sendKind = FfiSendKind.OnlineExact,
includeFee = true,
includeFee = false,
metadata = emptyMap(),
maxProofs = null
)
@@ -288,7 +288,7 @@ class CashuService {
Log.d(TAG, "FFI amount: ${ffiAmount}")
Result.success(amount)
Result.success(ffiAmount.value.toLong())
} catch (e: FfiException) {
Log.e(TAG, "CDK FFI error receiving token: ${e.message}")