fix clang tidy

This commit is contained in:
Tomasz Duda 2024-07-24 15:23:58 +02:00
parent 0c494f3650
commit 4224689f1c
2 changed files with 3 additions and 3 deletions

View file

@ -45,7 +45,7 @@ void Logger::pre_setup() {
case UART_SELECTION_USB_CDC: case UART_SELECTION_USB_CDC:
uart_dev = DEVICE_DT_GET_OR_NULL(DT_NODELABEL(cdc_acm_uart0)); uart_dev = DEVICE_DT_GET_OR_NULL(DT_NODELABEL(cdc_acm_uart0));
if (device_is_ready(uart_dev)) { if (device_is_ready(uart_dev)) {
usb_enable(NULL); usb_enable(nullptr);
} }
break; break;
} }

View file

@ -63,7 +63,7 @@ class EntityBase {
EntityCategory entity_category_{ENTITY_CATEGORY_NONE}; EntityCategory entity_category_{ENTITY_CATEGORY_NONE};
}; };
class EntityBase_DeviceClass { class EntityBase_DeviceClass { // NOLINT(readability-identifier-naming)
public: public:
/// Get the device class, using the manual override if set. /// Get the device class, using the manual override if set.
std::string get_device_class(); std::string get_device_class();
@ -74,7 +74,7 @@ class EntityBase_DeviceClass {
const char *device_class_{nullptr}; ///< Device class override const char *device_class_{nullptr}; ///< Device class override
}; };
class EntityBase_UnitOfMeasurement { class EntityBase_UnitOfMeasurement { // NOLINT(readability-identifier-naming)
public: public:
/// Get the unit of measurement, using the manual override if set. /// Get the unit of measurement, using the manual override if set.
std::string get_unit_of_measurement(); std::string get_unit_of_measurement();