From d2e32cdd78201bc01cc2dbfda66c6b7998e898dc Mon Sep 17 00:00:00 2001 From: rob <93094049+kraemr@users.noreply.github.com> Date: Wed, 19 Nov 2025 15:09:25 +0100 Subject: [PATCH] added comment --- ethercat-hal/src/debugging/diagnosis_history.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ethercat-hal/src/debugging/diagnosis_history.rs b/ethercat-hal/src/debugging/diagnosis_history.rs index 919d56f2..06ce7542 100644 --- a/ethercat-hal/src/debugging/diagnosis_history.rs +++ b/ethercat-hal/src/debugging/diagnosis_history.rs @@ -39,6 +39,11 @@ impl fmt::Display for SubdeviceDiagnosisEntry { } } +/* + Could be tested with this: + 00 E8 00 A0 02 00 00 00 5F FB D5 A5 A6 0B 00 00 05 00 11 05 10 08 2A 00 2A 00 +*/ + pub fn convert_raw_diagnosis_bytes(message : [u8; DIAG_MESSAGE_LENGTH]) -> Result { let diag_code_bytes = [message[0],message[1],message[2],message[3]];