mirror of
https://github.com/meshtastic/firmware.git
synced 2025-12-21 10:12:50 +00:00
Address review comments
This commit is contained in:
committed by
Jonathan Bennett
parent
df063f40ff
commit
b7bdcbe43e
@@ -367,7 +367,12 @@ void portduinoSetup()
|
|||||||
product_config = cleanupNameForAutoconf("lora-usb-" + std::string(autoconf_product) + ".yaml");
|
product_config = cleanupNameForAutoconf("lora-usb-" + std::string(autoconf_product) + ".yaml");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!access((portduino_config.available_directory + product_config).c_str(), R_OK)) {
|
// Don't try to automatically find config for a device with RAK eeprom.
|
||||||
|
if (found_rak_eeprom) {
|
||||||
|
std::cerr << "autoconf: Found unknown RAK product " << autoconf_product << std::endl;
|
||||||
|
exit(EXIT_FAILURE);
|
||||||
|
}
|
||||||
|
if (access((portduino_config.available_directory + product_config).c_str(), R_OK) != 0) {
|
||||||
std::cerr << "autoconf: Unable to find config for " << autoconf_product << "(tried " << product_config << ")"
|
std::cerr << "autoconf: Unable to find config for " << autoconf_product << "(tried " << product_config << ")"
|
||||||
<< std::endl;
|
<< std::endl;
|
||||||
exit(EXIT_FAILURE);
|
exit(EXIT_FAILURE);
|
||||||
|
|||||||
Reference in New Issue
Block a user