From d2e04ed14c84e35bb5ec6d5c1865a19ec12d86c6 Mon Sep 17 00:00:00 2001 From: Marian Buschsieweke Date: Fri, 19 May 2023 22:49:45 +0200 Subject: [PATCH] pkg/uwb-dw1000: fix compilation with clang --- pkg/uwb-dw1000/hal/uwb_dw1000.c | 4 ++-- .../0007-fix-compilation-with-clang.patch | Bin 0 -> 1814 bytes 2 files changed, 2 insertions(+), 2 deletions(-) create mode 100644 pkg/uwb-dw1000/patches/0007-fix-compilation-with-clang.patch diff --git a/pkg/uwb-dw1000/hal/uwb_dw1000.c b/pkg/uwb-dw1000/hal/uwb_dw1000.c index 515dd23e1d..090d76a124 100644 --- a/pkg/uwb-dw1000/hal/uwb_dw1000.c +++ b/pkg/uwb-dw1000/hal/uwb_dw1000.c @@ -153,8 +153,8 @@ void uwb_dw1000_update_config_from_otp(dw1000_dev_instance_t *dev) ((_dw1000_otp_read(dev, OTP_CH5_PG_DELAY_ADDRESS) & OTP_CH5_PG_DELAY_MASK) >> OTP_CH5_PG_DELAY_SHIFT); - LOG_DEBUG("uwb-dw1000: pg-delay addr=(%" PRIx16 "),val=(%" PRIx16 ")\n", - OTP_CH5_PG_DELAY_ADDRESS, pg_delay); + LOG_DEBUG("uwb-dw1000: pg-delay addr=(%x),val=(%x)\n", + (unsigned)OTP_CH5_PG_DELAY_ADDRESS, (unsigned)pg_delay); dev->uwb_dev.config.txrf.PGdly = pg_delay; } } diff --git a/pkg/uwb-dw1000/patches/0007-fix-compilation-with-clang.patch b/pkg/uwb-dw1000/patches/0007-fix-compilation-with-clang.patch new file mode 100644 index 0000000000000000000000000000000000000000..fbe7b34fe746af6f4816d7ce84ee7cda8dc888b8 GIT binary patch literal 1814 zcmb_d+iu%95Pj!YoIb4$$FeS#?Ks6EZ3?4#C{Q%}wpb{XII_9btt1sY*v-H1$g&e} zk)myO1sfE};hEu?GozKMON8@T?5ms>Y97W58OId+X_UnwFZt0q`FXU6!g-7jb%h&h z5X|BG%l!|b?+0SVFiU)pM#~CsTbpgHrY(IYye{{PUV5^4S>LT&PtmX9opiLs%IGr$ z=Y0O2;lc=ExSTGQ>}BLLytrx8KPhud{QmLHZ&&aCK(2Sl>ax*=bedz@YPUgF$Z9Rb ze!x~%&f?ZO(`N40LRJd5ZNCANniAH9hi8l^rlY<3ZEm8vQnnGvV759*Zt-&|x ztff7i^Ket6Aoq)fs^K=$d15>s3v9L%W%L~xJ88FR_fOO|@O^)xtE^}hO%Bt3NEF?9 z8~lw0M*J`YV+4H3f{<g{~}_?z(m`8g>hc*!g}w9txp!o?|>-YX>=bSp@0J z&Iw&9+JS=UxgSqGZyraK&t~8o&!*Fkl9xs#m=3%&s>@4^=jUeuv)T{5;O-kzl%r2L z4r%EUkeHp)a-F!p1dh+q%Ip%SOTx)kXVU7*MPcH)_q<88+AV|GMK|l8$>h~*thBL? z1;YaEX&MB+H$$pfo-AY5Q&TezZ#r6&89sUMK)!Mz%jOvuZ%WpwV_88uUv#~8U(}P@Zu?&$4CxjT=b|%#D^b8 z+gIT!mnSsmUs_q5?j1>(O?#f%yLIXr5^&?V#-&kQ7I(UD3w4gF)|Q@b@iiQ$jX4ef zg||-|zC&vGJg zf78G|5uAm6rv8HnSnt8C&nYV}OR~zHl+ID4=#z0(w_GBe&c=`|Q|^oQzD(zvyZMCeU@FA(A%>;n;H literal 0 HcmV?d00001