Skip to content

Commit a8ce7fb

Browse files
committed
fix can't queue more than 1 request
1 parent 973f7f1 commit a8ce7fb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ impl SimConnector {
6262

6363
pub fn add_data_definition(&self, define_id: SIMCONNECT_DATA_DEFINITION_ID, datum_name: &str, units_name: &str, datum_type: SIMCONNECT_DATATYPE) -> bool {
6464
unsafe {
65-
let result = SimConnect_AddToDataDefinition(self.sim_connect_handle, define_id, as_c_string!(datum_name), as_c_string!(units_name), datum_type, 0.0, 0);
65+
let result = SimConnect_AddToDataDefinition(self.sim_connect_handle, define_id, as_c_string!(datum_name), as_c_string!(units_name), datum_type, 0.0, u32::MAX);
6666
return result == 0;
6767
}
6868
}

0 commit comments

Comments
 (0)