Add OPFS G-code staging and browser simulation checks
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user