Преглед на файлове

added attribute const to stmdev_write_ptr signature

albezanc преди 4 години
родител
ревизия
0d461d2826
променени са 1 файла, в които са добавени 2 реда и са изтрити 4 реда
  1. 2 4
      lsm6ds3tr_c_reg.h

+ 2 - 4
lsm6ds3tr_c_reg.h

@@ -109,10 +109,8 @@ typedef struct
   *
   */
 
-typedef int32_t (*stmdev_write_ptr)(void *, uint8_t, uint8_t *,
-                                    uint16_t);
-typedef int32_t (*stmdev_read_ptr)(void *, uint8_t, uint8_t *,
-                                   uint16_t);
+typedef int32_t (*stmdev_write_ptr)(void *, uint8_t, const uint8_t *, uint16_t);
+typedef int32_t (*stmdev_read_ptr)(void *, uint8_t, uint8_t *, uint16_t);
 
 typedef struct
 {