Update packet building
This commit is contained in:
parent
8d07812548
commit
7e8c7466cd
|
|
@ -312,7 +312,7 @@ dshot_result_t DShotRMT::getTelemetry(uint16_t magnet_count)
|
|||
}
|
||||
|
||||
// Build a complete DShot packet
|
||||
dshot_packet_t DShotRMT::_buildDShotPacket(const uint16_t value)
|
||||
dshot_packet_t DShotRMT::_buildDShotPacket(const uint16_t &value)
|
||||
{
|
||||
// Init packet structure
|
||||
dshot_packet_t packet = {};
|
||||
|
|
|
|||
|
|
@ -162,7 +162,7 @@ private:
|
|||
dshot_result_t _initDShotEncoder();
|
||||
|
||||
// --- PACKET MANAGEMENT ---
|
||||
dshot_packet_t _buildDShotPacket(const uint16_t value);
|
||||
dshot_packet_t _buildDShotPacket(const uint16_t &value);
|
||||
uint16_t _parseDShotPacket(const dshot_packet_t &packet);
|
||||
uint16_t _calculateCRC(const uint16_t data);
|
||||
void _preCalculateBitPositions();
|
||||
|
|
|
|||
Loading…
Reference in New Issue