Skip to content

Commit

Permalink
BugFix: Pokud nebyl definován event EventSpinelPacketReceive, nevyvol…
Browse files Browse the repository at this point in the history
…aly se ani eventy EventQuidoInputsChange a EventQuidoInputChange.

New: Do Papouch.Spinel.Spinel97 přidán výčet možných potvrzení odpovědi od Quida (ACK).
  • Loading branch information
Papouchcom committed Jun 8, 2018
1 parent 727b8a4 commit b355009
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 3 deletions.
Binary file modified Latest/Papouch.Quido.dll
Binary file not shown.
Binary file modified Latest/Papouch.Quido.pdb
Binary file not shown.
Binary file modified Latest/Papouch.Utils.dll
Binary file not shown.
Binary file modified Latest/Papouch.Utils.pdb
Binary file not shown.
2 changes: 1 addition & 1 deletion Papouch.Spinel/Spinel97.Device.cs
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ public void StopListen()
public virtual void PacketReceive(ref PacketSpinel97 packet)
{
Debug.Print("Receive packet {0}", packet.INST);
OnPacketReceive(packet);
OnPacketReceive?.Invoke(packet);

if (packet.INST < 0x10)
{
Expand Down
17 changes: 16 additions & 1 deletion Papouch.Spinel/Spinel97.PacketSpinel97.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,22 @@

namespace Papouch.Spinel.Spinel97
{

/// <summary>
/// Výčet kódů Potvrzení dotazu (ACK). ACK informuje nadřazené zařízení jak dopadlo zpracování přijaté instrukce. Případně jakého typu je automaticky odeslaná zpráva.
/// </summary>
public enum ResponseACK
{
AllIsOk = 0x00,
AckOtherError = 0x01,
InvalidInstructionCode = 0x02,
InvalidData = 0x03,
AccessDenied = 0x04,
DeviceMalfunction = 0x05,
NoDataAvailable = 0x06,
AutoInfoInputChanged = 0x0D,
AutoInfoMeasured = 0x0E
}

public class PacketSpinel97
{
public byte PRE;
Expand Down
2 changes: 1 addition & 1 deletion Quido.NET.sln
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 15
VisualStudioVersion = 15.0.26730.10
VisualStudioVersion = 15.0.27130.2003
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Papouch.Comunication", "Papouch.Comunication\Papouch.Comunication.csproj", "{22AC128A-2FF6-4D39-96AF-CA023025BB4D}"
EndProject
Expand Down

0 comments on commit b355009

Please sign in to comment.