Skip to content

Commit

Permalink
Release v0.2.6
Browse files Browse the repository at this point in the history
  • Loading branch information
AdrianEddy committed Sep 6, 2022
1 parent fe0b319 commit c03021e
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "telemetry-parser"
version = "0.2.5"
version = "0.2.6"
authors = ["Adrian <[email protected]>"]
edition = "2021"
license = "MIT OR Apache-2.0"
Expand Down
2 changes: 1 addition & 1 deletion bin/gyro2bb/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "gyro2bb"
version = "0.2.5"
version = "0.2.6"
authors = ["Adrian <[email protected]>"]
edition = "2021"

Expand Down
2 changes: 1 addition & 1 deletion bin/gyro2bb/gyro2bb.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ use std::sync::{ Arc, atomic::AtomicBool };
use telemetry_parser::*;
use telemetry_parser::tags_impl::*;

/** gyro2bb v0.2.5
/** gyro2bb v0.2.6
Author: Adrian <[email protected]>
Extract gyro data from Sony, GoPro and Insta360 cameras to betaflight blackbox csv log
Expand Down
2 changes: 1 addition & 1 deletion bin/python-module/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "telemetry-parser-py"
version = "0.2.5"
version = "0.2.6"
authors = ["Adrian <[email protected]>"]
edition = "2021"

Expand Down
2 changes: 1 addition & 1 deletion bin/wasm-module/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "telemetry-parser-wasm"
version = "0.2.5"
version = "0.2.6"
authors = ["Adrian <[email protected]>"]
edition = "2021"

Expand Down
4 changes: 3 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@ macro_rules! impl_formats {
}
impl Input {
pub fn from_stream<T: Read + Seek, P: AsRef<std::path::Path>, F: Fn(f64)>(stream: &mut T, size: usize, filepath: P, progress_cb: F, cancel_flag: Arc<AtomicBool>) -> Result<Input> {
let read_mb = if size as u64 > 5u64*1024*1024*1024 { // If file is greater than 5 GB, read 10 MB header/footer
let read_mb = if size as u64 > 30u64*1024*1024*1024 { // If file is greater than 30 GB, read 30 MB header/footer
30
} else if size as u64 > 5u64*1024*1024*1024 { // If file is greater than 5 GB, read 10 MB header/footer
10
} else {
2
Expand Down

0 comments on commit c03021e

Please sign in to comment.