fix(generic-hid): improve based on NUT reference

Signed-off-by: bullshit <coding@ow-software.pl>
This commit is contained in:
bullshit committed 2025-08-07 12:07:16 +02:00
1 parent 5a74706bf8
commit 07f8c0943d
2 files changed
+171 -48

No files matched your search

+3
View File
@@ -303,6 +303,9 @@ namespace esphome
bool read_data(UpsData &data) override;
UpsProtocol get_protocol_type() const override { return PROTOCOL_GENERIC_HID; }
std::string get_protocol_name() const override { return "Generic HID"; }
private:
bool parse_generic_report(const std::vector<uint8_t>& response, UpsData& data);
};
} // namespace nut_ups