Compare commits
No commits in common. "97a6b4a04f40941d0a6eb74aef64dde053d7c336" and "e7c2c0794701a52705970d0bced05474ffb4f62a" have entirely different histories.
97a6b4a04f
...
e7c2c07947
|
|
@ -24,7 +24,7 @@ bool getUserConfirmation(const std::string& prompt) {
|
|||
std::cout << prompt << " (y/n): " << std::flush;
|
||||
std::getline(std::cin, input);
|
||||
if (!input.empty()) {
|
||||
char c = static_cast<char>(std::tolower(input[0]));
|
||||
char c = std::tolower(input[0]);
|
||||
return (c == 'y');
|
||||
}
|
||||
return false;
|
||||
|
|
@ -48,8 +48,7 @@ std::vector<icsneo::Network::NetID> selectNetworks(const std::vector<icsneo::Net
|
|||
if (input.empty())
|
||||
return selectedNetworks;
|
||||
|
||||
std::transform(input.begin(), input.end(), input.begin(),
|
||||
[](unsigned char c) { return static_cast<char>(std::tolower(c)); });
|
||||
std::transform(input.begin(), input.end(), input.begin(), ::tolower);
|
||||
|
||||
if (input == "all") {
|
||||
return availableNetworks;
|
||||
|
|
@ -167,10 +166,10 @@ void configureT1SNetwork(std::shared_ptr<icsneo::Device>& device, icsneo::Networ
|
|||
uint8_t txOppTimer = getUint8Input("TX Opportunity Timer (0-255)", 20);
|
||||
device->settings->setT1STxOppTimerFor(netId, txOppTimer);
|
||||
|
||||
uint8_t maxBurst = getUint8Input("Max Burst (0-255)", 128);
|
||||
uint16_t maxBurst = getUint16Input("Max Burst (0-65535)", 128);
|
||||
device->settings->setT1SMaxBurstFor(netId, maxBurst);
|
||||
|
||||
uint8_t burstTimer = getUint8Input("Burst Timer (0-255)", 64);
|
||||
uint16_t burstTimer = getUint16Input("Burst Timer (0-65535)", 64);
|
||||
device->settings->setT1SBurstTimerFor(netId, burstTimer);
|
||||
|
||||
if (device->settings->isT1STerminationEnabledFor(netId).has_value()) {
|
||||
|
|
|
|||
|
|
@ -98,7 +98,7 @@ bool getUserConfirmation(const std::string& prompt) {
|
|||
std::cout << prompt << " (y/n): " << std::flush;
|
||||
std::getline(std::cin, input);
|
||||
if (!input.empty()) {
|
||||
char c = static_cast<char>(std::tolower(input[0]));
|
||||
char c = std::tolower(input[0]);
|
||||
return (c == 'y');
|
||||
}
|
||||
return false;
|
||||
|
|
|
|||
|
|
@ -90,6 +90,7 @@ public:
|
|||
.add<EnterApplicationPhase>(ChipID::RAD_GALAXY_2_ZMPCHIP_ID)
|
||||
.add<ReconnectPhase>()
|
||||
.add<FlashPhase>(ChipID::RADGALAXY2_SYSMON_CHIP, BootloaderCommunication::RADGalaxy2Peripheral)
|
||||
.add<EnterApplicationPhase>(ChipID::RADGALAXY2_SYSMON_CHIP)
|
||||
.add<ReconnectPhase>()
|
||||
.add<WaitPhase>(std::chrono::milliseconds(3000));
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue