From 57dda8f42ccf7e0bbb6529f395cfda7084084611 Mon Sep 17 00:00:00 2001 From: chrysn Date: Fri, 24 Feb 2023 13:22:06 +0100 Subject: [PATCH] saul: Follow C renamings --- src/saul.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/saul.rs b/src/saul.rs index 1e44ff1b..f2cbf76c 100644 --- a/src/saul.rs +++ b/src/saul.rs @@ -419,13 +419,13 @@ impl Unit { riot_sys::UNIT_M => Some(Unit::M), riot_sys::UNIT_M2 => Some(Unit::M2), riot_sys::UNIT_M3 => Some(Unit::M3), - riot_sys::UNIT_G => Some(Unit::GForce), + riot_sys::UNIT_G_FORCE => Some(Unit::GForce), riot_sys::UNIT_DPS => Some(Unit::Dps), - riot_sys::UNIT_GR => Some(Unit::Gram), + riot_sys::UNIT_GRAM => Some(Unit::Gram), riot_sys::UNIT_A => Some(Unit::A), riot_sys::UNIT_V => Some(Unit::V), riot_sys::UNIT_W => Some(Unit::W), - riot_sys::UNIT_GS => Some(Unit::Gauss), + riot_sys::UNIT_GAUSS => Some(Unit::Gauss), riot_sys::UNIT_T => Some(Unit::T), riot_sys::UNIT_DBM => Some(Unit::Dbm), riot_sys::UNIT_COULOMB => Some(Unit::Coulomb), @@ -459,13 +459,13 @@ impl Unit { Some(Unit::M) => riot_sys::UNIT_M, Some(Unit::M2) => riot_sys::UNIT_M2, Some(Unit::M3) => riot_sys::UNIT_M3, - Some(Unit::GForce) => riot_sys::UNIT_G, + Some(Unit::GForce) => riot_sys::UNIT_G_FORCE, Some(Unit::Dps) => riot_sys::UNIT_DPS, - Some(Unit::Gram) => riot_sys::UNIT_GR, + Some(Unit::Gram) => riot_sys::UNIT_GRAM, Some(Unit::A) => riot_sys::UNIT_A, Some(Unit::V) => riot_sys::UNIT_V, Some(Unit::W) => riot_sys::UNIT_W, - Some(Unit::Gauss) => riot_sys::UNIT_GS, + Some(Unit::Gauss) => riot_sys::UNIT_GAUSS, Some(Unit::T) => riot_sys::UNIT_T, Some(Unit::Dbm) => riot_sys::UNIT_DBM, Some(Unit::Coulomb) => riot_sys::UNIT_COULOMB,