Skip to content

Commit

Permalink
clang
Browse files Browse the repository at this point in the history
  • Loading branch information
zvecr committed Oct 15, 2021
1 parent c5cae9e commit bfad3d0
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions drivers/usb2422.c
Original file line number Diff line number Diff line change
Expand Up @@ -311,17 +311,17 @@ typedef struct {

static Usb2422_t config;

static void USB2422_strcpy(const char* str, USB2422_MFRSTR_Type* dest, uint8_t len){
for(uint8_t i = 0; i < len; i++){
static void USB2422_strcpy(const char* str, USB2422_MFRSTR_Type* dest, uint8_t len) {
for (uint8_t i = 0; i < len; i++) {
dest[i] = str[i];
}
}

static void USB2422_write_block(void) {
static unsigned char i2c0_buf[34];
unsigned char * dest = i2c0_buf;
unsigned char * src;
unsigned char * base = (unsigned char *)&config;
unsigned char* dest = i2c0_buf;
unsigned char* src;
unsigned char* base = (unsigned char*)&config;

for (src = base; src < base + 256; src += 32) {
dest[0] = src - base;
Expand Down

0 comments on commit bfad3d0

Please sign in to comment.