Browse Source

Fix rt_qspi_send symbol extension BUG

wanghaijing 2 years ago
parent
commit
0827ca64d0
1 changed files with 1 additions and 2 deletions
  1. 1 2
      components/drivers/spi/qspi_core.c

+ 1 - 2
components/drivers/spi/qspi_core.c

@@ -186,7 +186,7 @@ rt_err_t rt_qspi_send(struct rt_qspi_device *device, const void *send_buf, rt_si
     RT_ASSERT(length != 0);
 
     struct rt_qspi_message message;
-    char *ptr = (char *)send_buf;
+    unsigned char *ptr = (unsigned char *)send_buf;
     rt_size_t  count = 0;
     rt_err_t result = 0;
 
@@ -241,7 +241,6 @@ rt_err_t rt_qspi_send(struct rt_qspi_device *device, const void *send_buf, rt_si
     else
     {
         message.qspi_data_lines = 0;
-
     }
 
     /* set send buf and send size */