This commit is contained in:
Keith Burzinski
2025-06-26 00:27:05 -05:00
parent 205dc9c6f8
commit 461e10ca3e

View File

@@ -133,7 +133,7 @@ enum PeriodicDataValue : uint8_t { HEAD = 0xAA, END = 0x55, CHECK = 0x00 };
enum AckDataStructure : uint8_t { COMMAND = 6, COMMAND_STATUS = 7 };
static int two_byte_to_int(char firstbyte, char secondbyte) { return (int16_t) (secondbyte << 8) + firstbyte; }
static inline int two_byte_to_int(char firstbyte, char secondbyte) { return (int16_t) (secondbyte << 8) + firstbyte; }
class LD2410Component : public Component, public uart::UARTDevice {
#ifdef USE_SENSOR