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

@@ -210,7 +210,10 @@ void portduinoSetup()
}
char serial[9] = {0};
ch341Hal->getSerialString(serial, 8);
std::cout << "Serial " << serial << std::endl;
std::cout << "CH341 Serial " << serial << std::endl;
char product_string[96] = {0};
ch341Hal->getProductString(product_string, 95);
std::cout << "CH341 Product " << product_string << std::endl;
if (strlen(serial) == 8 && settingsStrings[mac_address].length() < 12) {
uint8_t hash[32] = {0};
memcpy(hash, serial, 8);