fix compatibility with esp-idf

This commit is contained in:
p2r3
2025-08-20 04:55:28 +03:00
parent 19c49f8d54
commit 48b6c7cfb4
2 changed files with 2 additions and 0 deletions

View File

@@ -7,6 +7,7 @@
#ifdef ESP_PLATFORM
#define WIFI_SSID "your-ssid"
#define WIFI_PASS "your-password"
#include "esp_task_wdt.h"
#define wdt_reset(); \
esp_task_wdt_reset(); \
vTaskDelay(1);

View File

@@ -412,6 +412,7 @@ int sc_blockUpdate (int client_fd, int64_t x, int64_t y, int64_t z, uint8_t bloc
writeByte(client_fd, 0x08);
writeUint64(client_fd, ((x & 0x3FFFFFF) << 38) | ((z & 0x3FFFFFF) << 12) | (y & 0xFFF));
writeVarInt(client_fd, block_palette[block]);
return 0;
}
// S->C Acknowledge Block Change