Skip to content

Commit

Permalink
remove or downlevel more spammy logs
Browse files Browse the repository at this point in the history
  • Loading branch information
noahm committed Nov 12, 2024
1 parent eefe739 commit 4672f93
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 7 deletions.
5 changes: 2 additions & 3 deletions sdk/commands/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -361,14 +361,13 @@ export class SMXConfig {
*/
constructor(data: Uint8Array, firmwareVersion: number) {
this.firmwareVersion = firmwareVersion;
console.log("Config Firmware Version: ", this.firmwareVersion);
console.log("CONFIG RAW DATA: ", data.toString());
console.debug("CONFIG RAW DATA: ", data.toString());

if (this.firmwareVersion >= 5) {
this.config = smx_config_t.decode(data.slice(2, -1), true);
} else {
this.oldConfigSize = data[1];
console.log("Reading Old Config");
console.debug("Reading Old Config");

const slicedData = data.slice(2, -1);
// handle very old stage's smaller config data by padding
Expand Down
2 changes: 1 addition & 1 deletion sdk/commands/data_info.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export class SMXDeviceInfo {
player = 0;

constructor(data: Uint8Array) {
console.log("DEVICEINFO RAW DATA: ", data.toString());
console.debug("DEVICEINFO RAW DATA: ", data.toString());
this.#decode(data);
}

Expand Down
2 changes: 0 additions & 2 deletions sdk/smx.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,6 @@ class SMXEvents {
.filter((e) => e.type === "host_cmd_finished")
.map((e) => e.type === "host_cmd_finished");

finishedCommand$.log("Cmd Finished");

const okSend$ = finishedCommand$.startWith(true);

// Main USB Output
Expand Down
1 change: 0 additions & 1 deletion ui/ui.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ function usePreviouslyPairedDevices() {
if (browserSupported) {
navigator.hid.getDevices().then((devices) =>
devices.map((device) => {
console.log(`Found device: ${device.productName}`);
open_smx_device(device);
}),
);
Expand Down

0 comments on commit 4672f93

Please sign in to comment.