Skip to content

Commit b412186

Browse files
committed
Improvement: perform a const cast (the outcome is the same, but its cleaner).
1 parent 475f649 commit b412186

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/Arduino_10BASE_T1S_UDP.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ void Arduino_10BASE_T1S_UDP::onUdpRawRecv(struct udp_pcb *pcb, struct pbuf *p, c
218218
auto const rx_pkt = std::make_shared<UdpRxPacket>(
219219
remote_ip,
220220
remote_port,
221-
(uint8_t *)p->payload,
221+
(uint8_t const *)p->payload,
222222
p->len);
223223

224224
_rx_pkt_list.push_back(rx_pkt);

0 commit comments

Comments
 (0)