Skip to content

App v0.12.0#308

Merged
BitsAndDroids merged 5 commits intoreleasefrom
main
Apr 12, 2025
Merged

App v0.12.0#308
BitsAndDroids merged 5 commits intoreleasefrom
main

Conversation

@BitsAndDroids
Copy link
Copy Markdown
Owner

What kind of change is in this PR

  • New feature
  • Bug fix
  • Documentation

What's changed

Provide a description of the changes you've made and why you made them.


Related issue

If applicable provide the issue number.


Checklist before merging

  • If it's a core feature I've assessed if tests are needed and implemented
  • I ran linting and formatting
  • I checked if the project still builds

BitsAndDroids and others added 4 commits January 10, 2025 16:59
fixed due serial configuration
* Fixed vertical speed variable

* added velocitybody to lib
* added first setup for simvarwatcher

* added runbundle event logic

* flipped simvar map

* added simvar update logic

* fixed warnings and removed unused code

* made it possible to alter update rate

* reset outputs when swapping bundles

* allowed decimal input

* fixed tests
@BitsAndDroids BitsAndDroids requested a review from Copilot April 12, 2025 12:32
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot reviewed 38 out of 40 changed files in this pull request and generated 1 comment.

Files not reviewed (2)
  • crates/connector/src-tauri/connector_library/library.properties: Language not supported
  • crates/connector/src-tauri/src/events/outputs.json: Language not supported
Comments suppressed due to low confidence (3)

crates/connector/src-tauri/src/simconnect_mod/simconnect_handler.rs:591

  • The change from 'latest_output.update_every' to 'output.update_every' may introduce unintended behavior if these variables differ. Please verify that 'output.update_every' provides the correct value for the update frequency.
latest_output.update_every,

crates/connector/src-tauri/src/events/action.rs:4

  • [nitpick] Prefixing field names with an underscore suggests they are unused, which can be misleading if these fields are meant for external use. Consider renaming them without the underscore if they are intended to be part of the public API.
pub _id: u32,

crates/connector/serial/src/serial/serial_device.rs:92

  • In the serial device write loop, if 'self.port.write' returns 0 bytes written, the loop may become infinite. Consider adding a condition to break out of the loop when no progress is made.
while !remaining_data.is_empty() {

{
Ok(path) => path,
Err(e) => {
Err(_) => {
Copy link

Copilot AI Apr 12, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Discarding the error information by replacing 'Err(e)' with 'Err(_)' removes potentially useful details for debugging. Consider logging or preserving the error details to aid in troubleshooting.

Suggested change
Err(_) => {
Err(e) => {
error!("Failed to resolve exe.xml resource path: {:?}", e);

Copilot uses AI. Check for mistakes.
@BitsAndDroids BitsAndDroids merged commit 289e08a into release Apr 12, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants