Skip to content
Snippets Groups Projects
Unverified Commit 64afc748 authored by Koen Zandberg's avatar Koen Zandberg Committed by GitHub
Browse files

Merge pull request #10178 from jcarrano/qualifier-fixes/ethos

drivers/ethos: remove unnecessary casts.
parents 152a9dc3 4c54ceb2
No related branches found
No related tags found
No related merge requests found
......@@ -200,16 +200,16 @@ static size_t iolist_count_total(const iolist_t *iolist)
static void _write_escaped(uart_t uart, uint8_t c)
{
uint8_t *out;
const uint8_t *out;
int n;
switch(c) {
case ETHOS_FRAME_DELIMITER:
out = (uint8_t*)_esc_delim;
out = _esc_delim;
n = 2;
break;
case ETHOS_ESC_CHAR:
out = (uint8_t*)_esc_esc;
out = _esc_esc;
n = 2;
break;
default:
......@@ -244,7 +244,7 @@ void ethos_send_frame(ethos_t *dev, const uint8_t *data, size_t len, unsigned fr
/* send frame content */
while(len--) {
_write_escaped(dev->uart, *(uint8_t*)data++);
_write_escaped(dev->uart, *data++);
}
/* end of frame */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment