Skip to content

Manchester encoding and decoding #1135

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Added in a check to allow Manchester encoded things to be detected by…
… magic
mt3571 committed Dec 1, 2020
commit 3340fa079e87bacc8b248b8ec41ec6187e792f63
7 changes: 7 additions & 0 deletions src/core/operations/ManchesterDecode.mjs
Original file line number Diff line number Diff line change
@@ -25,6 +25,13 @@ class ManchesterDecode extends Operation {
this.inputType = "string";
this.outputType = "string";
this.args = [];
this.checks = [
{
pattern: "(01|10)*",
flags: "",
args: []
}
];
}

/**