Skip to main content

get_dpi

Function get_dpi 

Source
pub async fn get_dpi(
    backend: &dyn HidBackend,
    route: &DeviceRoute,
) -> Result<Dpi, WriteError>
Expand description

Read the device’s current DPI on sensor 0 — companion to set_dpi. Used by openlogi diag dpi and any future Settings → Diagnostics surface that wants to display the current value without writing.