Skip to content

Commit

Permalink
#237 Added init parameters for Loco deck and ySD card deck
Browse files Browse the repository at this point in the history
  • Loading branch information
krichardsson committed Nov 16, 2017
1 parent 736efb8 commit a626925
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/deck/drivers/src/locodeck.c
Original file line number Diff line number Diff line change
Expand Up @@ -517,6 +517,10 @@ PARAM_ADD(PARAM_FLOAT, anchor7z, &algoOptions.anchorPosition[7].z)
PARAM_ADD(PARAM_UINT8, enable, &algoOptions.combinedAnchorPositionOk)
PARAM_GROUP_STOP(anchorpos)

PARAM_GROUP_START(deck)
PARAM_ADD(PARAM_UINT8 | PARAM_RONLY, bcDWM1000, &isInit)
PARAM_GROUP_STOP(deck)

// Loco Posisioning Protocol (LPP) handling

void lpsHandleLppShortPacket(uint8_t srcId, uint8_t *data, int length)
Expand Down
5 changes: 5 additions & 0 deletions src/deck/drivers/src/usddeck.c
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@
#include "led.h"

#include "log.h"
#include "param.h"
#include "crc_bosch.h"

// Hardware defines
Expand Down Expand Up @@ -648,3 +649,7 @@ static const DeckDriver usd_deck = {
};

DECK_DRIVER(usd_deck);

PARAM_GROUP_START(deck)
PARAM_ADD(PARAM_UINT8 | PARAM_RONLY, bcUSD, &isInit)
PARAM_GROUP_STOP(deck)

0 comments on commit a626925

Please sign in to comment.