Skip to content

Commit

Permalink
Fixed warning by changing char to string
Browse files Browse the repository at this point in the history
  • Loading branch information
Hellesvik committed Feb 2, 2023
1 parent 5ef3f25 commit 39946de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bootloader_samples/client_smp/smp_client_ble/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ static void smp_upload_rsp_proc(struct bt_dfu_smp *dfu_smp)
} else if (value.len != 2) {
printk("Invalid data received (rc key). Length %d is not equal 2\n", value.len);
return;
} else if(!strncmp(value.value, 'rc', 2)){
} else if(!strncmp(value.value, "rc", 2)){
printk("Invalid data received (rc key). String '%.2s' is not equal to 'rc'\n", value.value);
return;
}
Expand Down

0 comments on commit 39946de

Please sign in to comment.