mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-07-06 03:31:43 +00:00
fixing all warnings and making sure they will stay fixed
Change-Id: Iff55ea18976562f37d6cc2848abff20c2c59ad96
This commit is contained in:
@@ -1837,10 +1837,9 @@ void CANJaguar::ConfigNeutralMode(NeutralMode mode)
|
||||
void CANJaguar::ConfigEncoderCodesPerRev(uint16_t codesPerRev)
|
||||
{
|
||||
uint8_t dataBuffer[8];
|
||||
uint8_t dataSize;
|
||||
|
||||
// Set the codes per revolution mode
|
||||
dataSize = packint16_t(dataBuffer, codesPerRev);
|
||||
packint16_t(dataBuffer, codesPerRev);
|
||||
sendMessage(LM_API_CFG_ENC_LINES, dataBuffer, sizeof(uint16_t));
|
||||
|
||||
m_encoderCodesPerRev = codesPerRev;
|
||||
|
||||
Reference in New Issue
Block a user