Skip to content

Commit

Permalink
[#361] Update CMSIS Packs to v1.6.0 specs
Browse files Browse the repository at this point in the history
  • Loading branch information
ilg-ul committed Sep 21, 2019
1 parent 60359ef commit 903b453
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,19 +18,20 @@
*/
public class PdscUtils {

private static int highestMinorForOne = 6;

/**
* Validate the schema version.
*
* @param semVer
* a semantic version object.
* @param semVer a semantic version object.
* @return true if the value is valid.
*/
public static boolean isSchemaValid(Version semVer) {

int major = semVer.getMajorVersion();
int minor = semVer.getMinorVersion();

if ((major == 1) && (minor <= 4)) {
if ((major == 1) && (minor <= highestMinorForOne)) {
return true;
} else {
return false;
Expand All @@ -40,8 +41,7 @@ public static boolean isSchemaValid(Version semVer) {
/**
* Convert a Windows path into a POSIX path.
*
* @param spath
* the string representing the Windows path.
* @param spath the string representing the Windows path.
* @return the corresponding POSIX path.
*/
public static String updatePosixSeparators(String spath) {
Expand Down

0 comments on commit 903b453

Please sign in to comment.