diff --git a/fichero_printer/CHANGELOG.md b/fichero_printer/CHANGELOG.md index f76e5ec..04e4412 100644 --- a/fichero_printer/CHANGELOG.md +++ b/fichero_printer/CHANGELOG.md @@ -5,9 +5,10 @@ All notable changes to this project are documented in this file. The format is based on Keep a Changelog and this project uses Semantic Versioning. -## [0.1.38] - 2026-03-21 +## [0.1.39] - 2026-03-21 ### Fixed +- **Syntax Error**: Fixed unterminated f-string in Bluetooth reset commands - **Persistent BLE Errors**: Added comprehensive Bluetooth stack reset for `br-connection-not-supported` errors - **Connection Recovery**: Enhanced automatic recovery with full Bluetooth service restart - **Classic Bluetooth**: Maintained fixes for `[Errno 12] Out of memory` errors @@ -27,6 +28,7 @@ The format is based on Keep a Changelog and this project uses Semantic Versionin - **Reliability**: Significantly improved BLE connection success rate - **Automatic Recovery**: Comprehensive automatic recovery without manual intervention - **User Guidance**: Clearer error messages with specific configuration fixes +- **Code Quality**: Fixed syntax errors and improved string formatting ## [0.1.37] - 2026-03-20 diff --git a/fichero_printer/config.yaml b/fichero_printer/config.yaml index 785cf5b..cb7612c 100644 --- a/fichero_printer/config.yaml +++ b/fichero_printer/config.yaml @@ -1,5 +1,5 @@ name: "Fichero Printer" -version: "0.1.38" +version: "0.1.39" name: "Fichero Printer" description: "REST API for Fichero D11s thermal label printer with BLE and Classic Bluetooth support" url: "https://github.com/your-repo/fichero-printer" diff --git a/fichero_printer/fichero/api.py b/fichero_printer/fichero/api.py index 030eeb0..1e2b57f 100644 --- a/fichero_printer/fichero/api.py +++ b/fichero_printer/fichero/api.py @@ -82,7 +82,7 @@ async def lifespan(app: FastAPI): # noqa: ARG001 app = FastAPI( title="Fichero Printer API", description="REST API for the Fichero D11s (AiYin) thermal label printer.", - version = "0.1.38", + version = "0.1.39", lifespan=lifespan, docs_url=None, redoc_url=None, diff --git a/fichero_printer/fichero/printer.py b/fichero_printer/fichero/printer.py index 65bfa7a..eb19e21 100644 --- a/fichero_printer/fichero/printer.py +++ b/fichero_printer/fichero/printer.py @@ -532,7 +532,7 @@ async def connect( f'echo -e "remove {address}\nquit" | bluetoothctl', "sudo systemctl restart bluetooth", "sleep 3", - f'echo -e "scan on\nscan off\nquit" | bluetoothctl" + f'echo -e "scan on\nscan off\nquit" | bluetoothctl' ] for cmd in reset_commands: proc = await asyncio.create_subprocess_shell(