uint8_t current_mode;
 
        /* Output buffer */
-       volatile char out_buff[SERIAL_OUT_BUFF_SIZE];
+       volatile uint8_t out_buff[SERIAL_OUT_BUFF_SIZE];
        volatile uint32_t sending; /* Actual sending position in out buffer */
        /* This lock only prevents multiple calls to serial_write() to execute simultaneously */
        volatile uint32_t out_lock;
        if (length > SERIAL_OUT_BUFF_SIZE) {
                length = SERIAL_OUT_BUFF_SIZE;
        }
-       memcpy((char*)uart->out_buff, buf, length);
+       memcpy((void*)uart->out_buff, buf, length);
        uart->out_length = length;
 
        /* Turn output on */