Skip to content

SMCC - Alpha release 0.0.2!

Latest
Compare
Choose a tag to compare
@Wauro21 Wauro21 released this 20 Jul 17:17
· 1 commit to master since this release

This release solves a bug found when using the HALT and INFO commands with the sendCommand function.

For the step and setup commands, the controller always reply with the actions taken, if the actions replied by the controller matches the ones found on the sent command, the controller is working properly. Nevertheless, the commands HALT and INFO are somewhat different, so the controller gives some other information or acknowledge to the API. The old sendCommand function checks that every response matches the command, if not it raises an Exception. This was a problem because sending a HALT or INFO command resulted on an unwanted Exception. This is now fixed with the inclusion of a new parameter check, that indicates if the function must check symmetry in the response or not.

Everything was updated accordingly on the docs, hope this one works better!

Changelog

  1. sendCommand function now includes a check parameter defaulted to true, that indicates if symmetry in the response must be enforced.
  2. HALT_CMD now only sends one byte instead of three (1 command byte and 2 padding bytes).
  3. INFO_CMD now only sends one byte instead of three (1 command byte and 2 padding bytes).