From fb3f59cf8474d99f1ec72056d53c7901a18607b2 Mon Sep 17 00:00:00 2001 From: david barinas Date: Tue, 30 Apr 2024 17:13:42 -0500 Subject: [PATCH] fix: Fix parsing issue in PjsExtension impl and add logging information for buffer --- pjs-rs/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pjs-rs/src/lib.rs b/pjs-rs/src/lib.rs index 87d8b93..726f212 100644 --- a/pjs-rs/src/lib.rs +++ b/pjs-rs/src/lib.rs @@ -157,10 +157,10 @@ impl PjsExtension { return; }; log::info!("s({:?})", s); - // *b = u8::from_str_radix(s, 16).unwrap_or_default(); - *b = 1; + *b = u8::from_str_radix(s, 16).unwrap_or_default(); log::info!("b({:?})", &b); } + log::info!("buf({:?})", &buf); } }