aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/chelper/serialqueue.c
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2019-02-27 13:42:02 -0500
committerKevin O'Connor <kevin@koconnor.net>2019-02-27 14:20:15 -0500
commitadc4af2fc4cebae968f5ffe6ecdbef91bd414d62 (patch)
tree7cab6fdb69b7c8886b9221d4343980fab15f9e82 /klippy/chelper/serialqueue.c
parente4d52a19b81cae5c141e2b94db5843773304d5fe (diff)
downloadkutter-adc4af2fc4cebae968f5ffe6ecdbef91bd414d62.tar.gz
kutter-adc4af2fc4cebae968f5ffe6ecdbef91bd414d62.tar.xz
kutter-adc4af2fc4cebae968f5ffe6ecdbef91bd414d62.zip
serialqueue: Wrap code to 80 columns
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'klippy/chelper/serialqueue.c')
-rw-r--r--klippy/chelper/serialqueue.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/klippy/chelper/serialqueue.c b/klippy/chelper/serialqueue.c
index de9e8958..4bbfd586 100644
--- a/klippy/chelper/serialqueue.c
+++ b/klippy/chelper/serialqueue.c
@@ -667,7 +667,8 @@ build_and_send_command(struct serialqueue *sq, double eventtime)
// Fill header / trailer
out->len += MESSAGE_TRAILER_SIZE;
out->msg[MESSAGE_POS_LEN] = out->len;
- out->msg[MESSAGE_POS_SEQ] = MESSAGE_DEST | (sq->send_seq & MESSAGE_SEQ_MASK);
+ out->msg[MESSAGE_POS_SEQ] = (MESSAGE_DEST
+ | (sq->send_seq & MESSAGE_SEQ_MASK));
uint16_t crc = crc16_ccitt(out->msg, out->len - MESSAGE_TRAILER_SIZE);
out->msg[out->len - MESSAGE_TRAILER_CRC] = crc >> 8;
out->msg[out->len - MESSAGE_TRAILER_CRC+1] = crc & 0xff;
@@ -958,8 +959,8 @@ serialqueue_send_batch(struct serialqueue *sq, struct command_queue *cq
// Schedule the transmission of a message on the serial port at a
// given time and priority.
void __visible
-serialqueue_send(struct serialqueue *sq, struct command_queue *cq
- , uint8_t *msg, int len, uint64_t min_clock, uint64_t req_clock)
+serialqueue_send(struct serialqueue *sq, struct command_queue *cq, uint8_t *msg
+ , int len, uint64_t min_clock, uint64_t req_clock)
{
struct queue_message *qm = message_fill(msg, len);
qm->min_clock = min_clock;