Skip to content

Commit

Permalink
DroneCAN: public for external access
Browse files Browse the repository at this point in the history
  • Loading branch information
meee1 committed Mar 26, 2022
1 parent 2f16c68 commit aafb636
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion ExtLibs/DroneCAN/CANFrame.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@ namespace DroneCAN
/// </summary>
public class CANFrame
{
private byte[] packet_data;
/// <summary>
/// raw packet data
/// </summary>
public byte[] packet_data;

public enum FrameType
{
Expand Down
4 changes: 2 additions & 2 deletions ExtLibs/DroneCAN/DroneCAN.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1662,7 +1662,7 @@ byte hextoint(char number)
else return 0;
}

static uint8_t dlcToDataLength(uint8_t dlc)
public static uint8_t dlcToDataLength(uint8_t dlc)
{
/*
Data Length Code 9 10 11 12 13 14 15
Expand Down Expand Up @@ -1698,7 +1698,7 @@ Number of data bytes 12 16 20 24 32 48 64
}
return 64;
}
static uint8_t dataLengthToDlc(int data_length)
public static uint8_t dataLengthToDlc(int data_length)
{
if (data_length <= 8)
{
Expand Down

0 comments on commit aafb636

Please sign in to comment.