Skip to content

Commit

Permalink
Updating usr read/write function defs to remove warning
Browse files Browse the repository at this point in the history
  • Loading branch information
stephendpmurphy committed Oct 6, 2020
1 parent b7bfe35 commit 6014d53
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions template/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
#include <stdint.h>
#include "icm20948_api.h"

int8_t usr_write(uint8_t addr, uint8_t *data, uint32_t len) {
int8_t usr_write(const uint8_t addr, const uint8_t *data, const uint32_t len) {
icm20948_return_code_t ret = ICM20948_RET_OK;

// Assert the CS
Expand All @@ -39,7 +39,7 @@ int8_t usr_write(uint8_t addr, uint8_t *data, uint32_t len) {
return ret;
}

int8_t usr_read(uint8_t addr, uint8_t *data, uint32_t len) {
int8_t usr_read(const uint8_t addr, uint8_t *data, const uint32_t len) {
icm20948_return_code_t ret = ICM20948_RET_OK;

// Assert the CS
Expand Down

0 comments on commit 6014d53

Please sign in to comment.