1
yincheng.zhong
2025-04-19 266dcffc919008dedf2acc84f7f52a3aff83bf07
Src/decadriver/deca_device.c
@@ -156,6 +156,7 @@
uint8_t module_power;
uint32_t power_temp,power_input;
extern u32 id,error_times;
u8 errortimes;
int dwt_initialise(uint16_t config)
{
      
@@ -176,6 +177,8 @@
    dw1000local.deviceID =  dwt_readdevid() ;
    while (DWT_DEVICE_ID != dw1000local.deviceID) // MP IC ONLY (i.e. DW1000) FOR THIS CODE
    {
        if(errortimes++>10)
            break;
          dw1000local.deviceID =  dwt_readdevid() ;
    }
    id =  dwt_readdevid() ;