fix to have an happy CI
This commit is contained in:
parent
414a7259f0
commit
4c4f48ea93
|
|
@ -486,7 +486,7 @@ void Altera::max10_program(unsigned int offset)
|
||||||
if (_flash_sectors.size() > 0) {
|
if (_flash_sectors.size() > 0) {
|
||||||
const std::vector<std::string> sectors = splitString(_flash_sectors, ',');
|
const std::vector<std::string> sectors = splitString(_flash_sectors, ',');
|
||||||
update_sectors = 0;
|
update_sectors = 0;
|
||||||
for (const auto sector: sectors) {
|
for (const auto §or: sectors) {
|
||||||
if (sector == "UFM1")
|
if (sector == "UFM1")
|
||||||
update_sectors |= (1 << 0);
|
update_sectors |= (1 << 0);
|
||||||
else if (sector == "UFM0")
|
else if (sector == "UFM0")
|
||||||
|
|
|
||||||
|
|
@ -6,8 +6,9 @@
|
||||||
|
|
||||||
#include "common.hpp"
|
#include "common.hpp"
|
||||||
|
|
||||||
#include <string>
|
|
||||||
#include <cstdlib>
|
#include <cstdlib>
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
* \brief return shell environment variable value
|
* \brief return shell environment variable value
|
||||||
|
|
@ -31,7 +32,7 @@ const std::vector<std::string> splitString(const std::string& in,
|
||||||
std::vector<std::string> tokens;
|
std::vector<std::string> tokens;
|
||||||
size_t start = 0, end = 0;
|
size_t start = 0, end = 0;
|
||||||
|
|
||||||
while ((end = in.find(',', start)) != std::string::npos) {
|
while ((end = in.find(delim, start)) != std::string::npos) {
|
||||||
tokens.push_back(in.substr(start, end - start));
|
tokens.push_back(in.substr(start, end - start));
|
||||||
start = end + 1;
|
start = end + 1;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -7,6 +7,7 @@
|
||||||
#define SRC_COMMON_HPP_
|
#define SRC_COMMON_HPP_
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
* \brief return shell environment variable value
|
* \brief return shell environment variable value
|
||||||
|
|
|
||||||
|
|
@ -142,7 +142,6 @@ int main(int argc, char **argv)
|
||||||
printError("Error in parse arg step");
|
printError("Error in parse arg step");
|
||||||
return EXIT_FAILURE;
|
return EXIT_FAILURE;
|
||||||
}
|
}
|
||||||
printf("sectors: %s\n", args.flash_sector.c_str());
|
|
||||||
|
|
||||||
if (args.is_list_command) {
|
if (args.is_list_command) {
|
||||||
displaySupported(args);
|
displaySupported(args);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue