Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
noahm committed Apr 5, 2024
1 parent 7f5af85 commit 3257376
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions sdk/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import {
PACKET_FLAG_START_OF_COMMAND,
} from "./packet";


// TODO: Probably move all this bacon packet stuff to `packet.js`?
interface PacketHandlingState {
currentPacket: Uint8Array;
Expand All @@ -34,9 +33,9 @@ export const handlePacket: StateF<DataView, PacketHandlingState, Packet> = (stat
// console.log("Raw Packet Data: ", data);

// Return if packet is empty
if (data.length <= 3){
if (data.length <= 3) {
console.log("Empty Packet");
return [state, []];
return [state, []];
}
const cmd = data[0];
const byte_len = data[1];
Expand Down Expand Up @@ -93,4 +92,4 @@ export const handlePacket: StateF<DataView, PacketHandlingState, Packet> = (stat
}

return [newState, eventsToPass.map((e) => new Bacon.Next(e))];
};
};

0 comments on commit 3257376

Please sign in to comment.