Public Access
fix(generic-hid): improve based on NUT reference
Signed-off-by: bullshit <coding@ow-software.pl>
This commit is contained in:
2 files changed
+171
-48
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user