From 32ed56ade2a1547d8e74e0082535050694524c6f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?George-D=C4=83nu=C8=9B=20Aldea?= <danutz.aldea23@gmail.com>
Date: Tue, 8 Apr 2025 13:24:45 +0300
Subject: [PATCH 1/2] fixed raw registers type

---
 website/lab/06/index.mdx | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/website/lab/06/index.mdx b/website/lab/06/index.mdx
index 6d642ea..6f153c8 100644
--- a/website/lab/06/index.mdx
+++ b/website/lab/06/index.mdx
@@ -229,9 +229,9 @@ The `press` contains the raw pressure measurement data. The measurement output i
 To determine the raw pressure measurement, you need to first read the `press_msb`, `press_lsb` and `press_xlsb` register values, then compute the raw value:
 
 ```rust
-// Assuming the `press_*` values are u32s. If not, additional
+// Assuming the `press_*` values are i32s. If not, additional
 // casts will be necessary.
-let raw_press: u32 = (press_msb << 12) + (press_lsb << 4) + (press_xlsb >> 4)
+let raw_press: i32 = (press_msb << 12) + (press_lsb << 4) + (press_xlsb >> 4)
 ```
 :::
 
@@ -249,9 +249,9 @@ The `temp` contains the raw temperature measurement data. The measurement output
 To determine the raw temperature measurement, you need to first read the `temp_msb`, `temp_lsb` and `temp_xlsb` register values, then compute the raw value:
 
 ```rust
-// Assuming the `temp_*` values are u32s. If not, additional
+// Assuming the `temp_*` values are i32s. If not, additional
 // casts will be necessary.
-let raw_temp: u32 = (temp_msb << 12) + (temp_lsb << 4) + (temp_xlsb >> 4)
+let raw_temp: i32 = (temp_msb << 12) + (temp_lsb << 4) + (temp_xlsb >> 4)
 ```
 :::
 
-- 
GitLab


From 96c86839374384ad56a3d405bca472b529b274b9 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?George-D=C4=83nu=C8=9B=20Aldea?= <danutz.aldea23@gmail.com>
Date: Tue, 8 Apr 2025 13:25:20 +0300
Subject: [PATCH 2/2] fixed broken link

---
 website/lab/06/index.mdx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/website/lab/06/index.mdx b/website/lab/06/index.mdx
index 6f153c8..6cba897 100644
--- a/website/lab/06/index.mdx
+++ b/website/lab/06/index.mdx
@@ -494,7 +494,7 @@ This should be done **only once**, before reading the sensor.
 
 * Read the raw temperature value stored in the `temp` register once a second, and print it to the terminal using the `defmt` macros. Details on how this can be performed can be found in this [subsection](./index.mdx#register-temp-0xfa0xfc) of the register map and in the [Reading a register](./index.mdx#reading-a-register) subsection. (**2p**)
 
-3. Based on the raw temperature value previously determined, compute the actual temperature value using the **mock** calibration values provided bellow and the formula described in the [sections above](./index.mdx#temperature-computation-formulae). (**1p**)
+3. Based on the raw temperature value previously determined, compute the actual temperature value using the **mock** calibration values provided bellow and the formula described in the [sections above](./index.mdx#temperature-computation-formula). (**1p**)
 
 ```rust
 let dig_t1: u16 = 27504;
-- 
GitLab