//print(", tail=", (p-1) - txbuffer); | //print(", tail=", (p-1) - txbuffer); | ||||
//println(", tail=", txtail); | //println(", tail=", txtail); | ||||
uint32_t tail = txtail; | uint32_t tail = txtail; | ||||
tail += *(p-1) + 1; | |||||
uint8_t size = *(p-1); | |||||
tail += size + 1; | |||||
if (tail >= sizeof(txbuffer)) tail -= sizeof(txbuffer); | |||||
txtail = tail; | txtail = tail; | ||||
//println("new tail=", tail); | //println("new tail=", tail); | ||||
txready = true; | txready = true; |