Skip to content

Commit

Permalink
Remove unnecessary async
Browse files Browse the repository at this point in the history
  • Loading branch information
fchorney committed Apr 11, 2024
1 parent c95f1d3 commit d259bba
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions sdk/smx.ts
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ export class SMXStage {
return this.events.ackReports$.firstToPromise();
}

async setLightStrip(color: RGB): Promise<AckPacket> {
setLightStrip(color: RGB): Promise<AckPacket> {
const led_strip_index = 0; // Always 0
const number_of_leds = 44; // Always 44 (Unless some older or newer versions have more/less?)
const rgb = color.toArray();
Expand Down Expand Up @@ -201,12 +201,12 @@ export class SMXStage {
return this.events.ackReports$.firstToPromise();
}

async forceRecalibration(): Promise<AckPacket> {
forceRecalibration(): Promise<AckPacket> {
this.events.output$.push([API_COMMAND.FORCE_RECALIBRATION]);
return this.events.ackReports$.firstToPromise();
}

async updateDeviceInfo(): Promise<SMXDeviceInfo> {
updateDeviceInfo(): Promise<SMXDeviceInfo> {
this.events.output$.push([API_COMMAND.GET_DEVICE_INFO]);
return this.deviceInfo$.firstToPromise();
}
Expand All @@ -219,7 +219,7 @@ export class SMXStage {
return this.configResponse$.firstToPromise();
}

async updateTestData(mode: SensorTestMode | null = null): Promise<SMXSensorTestData> {
updateTestData(mode: SensorTestMode | null = null): Promise<SMXSensorTestData> {
if (mode) this.test_mode = mode;

this.events.output$.push([API_COMMAND.GET_SENSOR_TEST_DATA, this.test_mode]);
Expand Down

0 comments on commit d259bba

Please sign in to comment.