Skip to content

Commit 6a9e2e7

Browse files
committed
Dump to version 0.7.1
1 parent df7af30 commit 6a9e2e7

3 files changed

Lines changed: 9 additions & 9 deletions

File tree

rust/Cargo.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

rust/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ extension-module = ["pyo3/extension-module"]
1414
[dependencies]
1515
pyo3 = { version = "0.26" }
1616
pyo3-async-runtimes = { version = "0.26", features = ["tokio-runtime"] }
17-
crazyflie-lib = "0.6.0"
17+
crazyflie-lib = "0.7.1"
1818
crazyflie-link = "0.4.2"
1919
tokio = { version = "1.48", features = ["full"] }
2020
futures = "0.3.31"

rust/src/crazyflie.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -127,28 +127,28 @@ impl Crazyflie {
127127
/// Power off the STM32 and deck subsystem
128128
///
129129
/// Cuts power to the STM32 and decks while keeping the nRF51 powered.
130-
/// The Crazyflie can be powered on again using `power_on_stm32()`.
130+
/// The Crazyflie can be powered on again using `power_on_stm32_domain()`.
131131
/// This does not require a full connection.
132132
#[staticmethod]
133133
#[gen_stub(override_return_type(type_repr = "collections.abc.Coroutine[typing.Any, typing.Any, None]"))]
134-
fn power_off_stm32<'py>(py: Python<'py>, link_context: &LinkContext, uri: String) -> PyResult<Bound<'py, PyAny>> {
134+
fn power_off_stm32_domain<'py>(py: Python<'py>, link_context: &LinkContext, uri: String) -> PyResult<Bound<'py, PyAny>> {
135135
let inner = link_context.inner.clone();
136136
pyo3_async_runtimes::tokio::future_into_py(py, async move {
137-
crazyflie_lib::Crazyflie::power_off_stm32(&inner, &uri).await.map_err(to_pyerr)?;
137+
crazyflie_lib::Crazyflie::power_off_stm32_domain(&inner, &uri).await.map_err(to_pyerr)?;
138138
Ok(())
139139
})
140140
}
141141

142142
/// Power on the STM32 and deck subsystem
143143
///
144-
/// Powers the STM32 and decks back on after a `power_off_stm32()`.
144+
/// Powers the STM32 and decks back on after a `power_off_stm32_domain()`.
145145
/// This does not require a full connection.
146146
#[staticmethod]
147147
#[gen_stub(override_return_type(type_repr = "collections.abc.Coroutine[typing.Any, typing.Any, None]"))]
148-
fn power_on_stm32<'py>(py: Python<'py>, link_context: &LinkContext, uri: String) -> PyResult<Bound<'py, PyAny>> {
148+
fn power_on_stm32_domain<'py>(py: Python<'py>, link_context: &LinkContext, uri: String) -> PyResult<Bound<'py, PyAny>> {
149149
let inner = link_context.inner.clone();
150150
pyo3_async_runtimes::tokio::future_into_py(py, async move {
151-
crazyflie_lib::Crazyflie::power_on_stm32(&inner, &uri).await.map_err(to_pyerr)?;
151+
crazyflie_lib::Crazyflie::power_on_stm32_domain(&inner, &uri).await.map_err(to_pyerr)?;
152152
Ok(())
153153
})
154154
}

0 commit comments

Comments
 (0)