MCPcopy Create free account
hub / github.com/Moddable-OpenSource/moddable / fxSerialSetFormat

Function fxSerialSetFormat

modules/io/serial/mac/serial.c:390–398  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

388}
389
390void fxSerialSetFormat(xsMachine *the, xsSerial s, char *format)
391{
392 if (!strcmp(format, "buffer"))
393 s->bufferFormat = 1;
394 else if (!strcmp(format, "number"))
395 s->bufferFormat = 2;
396 else
397 xsUnknownError("invalid");
398}

Callers 2

xs_serial_constructorFunction · 0.85
xs_serial_format_setFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected