Portduino: Return CH341 Product Strng (#6436)

This commit is contained in:
Austin
2025-03-28 16:59:42 -04:00
committed by GitHub
parent 4a12b4eb32
commit 02237f5ac6
2 changed files with 10 additions and 1 deletions

View File

@@ -61,6 +61,12 @@ class Ch341Hal : public RadioLibHal
strncpy(_serial, pinedio.serial_number, len);
}
void getProductString(char *_product_string, size_t len)
{
len = len > 95 ? 95 : len;
strncpy(_product_string, pinedio.product_string, len);
}
void init() override {}
void term() override {}