diff --git a/README.md b/README.md index cc3ae0e..a659143 100644 --- a/README.md +++ b/README.md @@ -23,6 +23,8 @@ PicoForge is a modern desktop application for configuring and managing Pico FIDO - Real-time system logging and diagnostics - Support for multiple hardware variants and vendors +> **Alpha Status**: This application is currently under active development and in alpha stage. Users should expect bugs and are encouraged to report them. The app has been tested on Linux with the official Raspberry Pi Pico2 and currently supports Pico FIDO firmware version 7.2 only. Release binaries will be built and published soon. + ## Screenshots
@@ -225,6 +227,7 @@ See [LICENSE](LICENSE) for full details. ## Support +- **Discord**: [Join our Discord server](https://discord.gg/6wYBpSHJY2) for community support and interaction - **Issues**: [GitHub Issues](https://github.com/librekeys/picoforge/issues) - **Discussions**: [GitHub Discussions](https://github.com/librekeys/picoforge/discussions) diff --git a/src-tauri/src/lib.rs b/src-tauri/src/lib.rs index f1c2304..5a08f86 100644 --- a/src-tauri/src/lib.rs +++ b/src-tauri/src/lib.rs @@ -83,7 +83,7 @@ struct FullDeviceStatus { secure_lock: bool, } -// Custom Error type for easy returning to frontend +// Custom Error types #[derive(Debug, thiserror::Error)] enum AppError { #[error("PCSC Error: {0}")] @@ -310,12 +310,10 @@ fn write_config(config: AppConfigInput) -> Result { // Options (Tag 0x06) if let (Some(dim), Some(cycle), Some(steady)) = (config.led_dimmable, config.power_cycle_on_reset, config.led_steady) { - let mut opts: u16 = 0; // Changed from u8 to u16 + let mut opts: u16 = 0; if dim { opts |= OPT_LED_DIMMABLE; } - // Logic check: "Power Cycle On" means the DISABLE flag is NOT set. - // If "Power Cycle On" is false, we SET the DISABLE flag. if !cycle { opts |= OPT_DISABLE_POWER_RESET; } if steady { opts |= OPT_LED_STEADY; } @@ -331,14 +329,14 @@ fn write_config(config: AppConfigInput) -> Result { if enabled { curves |= CURVE_SECP256K1; } tlv.push(TAG_CURVES); - tlv.push(0x04); // Length is 4 + tlv.push(0x04); tlv.write_u32::(curves).unwrap(); } // LED Driver (Tag 0x0C) if let Some(val) = config.led_driver { tlv.push(TAG_LED_DRIVER); - tlv.push(0x01); // Length 1 + tlv.push(0x01); tlv.push(val); }