From 6a5f6564218a48d2b79a88228a4a36b330e9b9ac Mon Sep 17 00:00:00 2001 From: kyz Date: Thu, 28 Aug 2025 10:36:45 +0800 Subject: [PATCH] fix __delay_us --- user/user_proportionvalve.c | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/user/user_proportionvalve.c b/user/user_proportionvalve.c index 8bb762b..372c38d 100644 --- a/user/user_proportionvalve.c +++ b/user/user_proportionvalve.c @@ -109,12 +109,14 @@ void lt3092_set_current( float current ) ad5245_set_res( R_set ); } -static void __delay_us( uint32_t us ) -{ - volatile int i; - - for( i=0; i