fix printf d>ld warning

This commit is contained in:
Morgan 'ARR\!' Allen 2024-01-05 13:15:52 -08:00
parent cbf4ff2ad5
commit be2fe15648

View file

@ -30,7 +30,7 @@ int ifnow_now_send(ifnow_now_cfg_t *now_cfg, uint8_t *buf, uint16_t len) {
memcpy(&packet.wlan.sa, buf + 6, 6); memcpy(&packet.wlan.sa, buf + 6, 6);
memcpy(&packet.wlan.bssid, buf, 6); memcpy(&packet.wlan.bssid, buf, 6);
printf("NOW: sending %d bytes\n", sizeof(packet)); printf("NOW: sending %ld bytes\n", sizeof(packet));
for(uint16_t i = 0; i < sizeof(packet); i++) { for(uint16_t i = 0; i < sizeof(packet); i++) {
printf("%02X ", ((uint8_t*)&packet)[i]); printf("%02X ", ((uint8_t*)&packet)[i]);