Skip to content

Commit

Permalink
fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
Thiago Avancini authored and sachaw committed Apr 26, 2024
1 parent 54a825e commit 345f78e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions src/meshDevice.ts
Original file line number Diff line number Diff line change
Expand Up @@ -777,13 +777,13 @@ export abstract class MeshDevice {
if (decodedMessage.payloadVariant.value !== this.configId) {
this.log.error(
Types.Emitter[Types.Emitter.HandleFromRadio],
`❌ Invalid config id reveived from device, exptected ${this.configId} but received ${decodedMessage.payloadVariant.value}`,
`❌ Invalid config id received from device, expected ${this.configId} but received ${decodedMessage.payloadVariant.value}`,
);
}

this.log.info(
Types.Emitter[Types.Emitter.HandleFromRadio],
`⚙️ Valid config id reveived from device: ${this.configId}`,
`⚙️ Valid config id received from device: ${this.configId}`,
);

this.updateDeviceStatus(Types.DeviceStatusEnum.DeviceConfigured);
Expand Down Expand Up @@ -856,7 +856,7 @@ export abstract class MeshDevice {
}
this.log.debug(
Types.Emitter[Types.Emitter.GetMetadata],
"🏷️ Recieved metadata packet",
"🏷️ Received metadata packet",
);

this.events.onDeviceMetadataPacket.dispatch({
Expand Down Expand Up @@ -1046,7 +1046,7 @@ export abstract class MeshDevice {
case "getDeviceMetadataResponse": {
this.log.debug(
Types.Emitter[Types.Emitter.GetMetadata],
`🏷️ Recieved metadata packet from ${dataPacket.source}`,
`🏷️ Received metadata packet from ${dataPacket.source}`,
);

this.events.onDeviceMetadataPacket.dispatch({
Expand Down
6 changes: 3 additions & 3 deletions src/utils/eventSystem.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,23 +47,23 @@ export class EventSystem {
new SimpleEventDispatcher<Protobuf.Mesh.NodeInfo>();

/**
* Fires when a new Channel message is recieved
* Fires when a new Channel message is received
*
* @event onChannelPacket
*/
public readonly onChannelPacket =
new SimpleEventDispatcher<Protobuf.Channel.Channel>();

/**
* Fires when a new Config message is recieved
* Fires when a new Config message is received
*
* @event onConfigPacket
*/
public readonly onConfigPacket =
new SimpleEventDispatcher<Protobuf.Config.Config>();

/**
* Fires when a new ModuleConfig message is recieved
* Fires when a new ModuleConfig message is received
*
* @event onModuleConfigPacket
*/
Expand Down

0 comments on commit 345f78e

Please sign in to comment.