Add OPFS G-code staging and browser simulation checks

This commit is contained in:
2026-06-22 10:56:21 +08:00
parent 8321055934
commit 61e2fe8441
19 changed files with 1869 additions and 35 deletions

View File

@@ -510,7 +510,7 @@ static void append_runtime_sample(
EMSCRIPTEN_KEEPALIVE
char *lctp_run_canonical_motion_timing(const char *json)
{
const size_t out_size = 4 * 1024 * 1024;
const size_t out_size = 32 * 1024 * 1024;
char *out = (char *)malloc(out_size);
if (!out) {
return NULL;
@@ -532,7 +532,7 @@ char *lctp_run_canonical_motion_timing(const char *json)
return out;
}
enum { MAX_EVENTS = 4096 };
enum { MAX_EVENTS = 12000 };
LctpMotionEvent *events = (LctpMotionEvent *)calloc(MAX_EVENTS, sizeof(LctpMotionEvent));
if (!events) {
append(out, out_size, &offset, "{\"ok\":false,\"error\":\"failed to allocate motion events\"}\n");