diff --git a/NPMK/NPMKverChecker.dat b/NPMK/NPMKverChecker.dat deleted file mode 100644 index 12b23f7..0000000 Binary files a/NPMK/NPMKverChecker.dat and /dev/null differ diff --git a/NPMK/NPMKverChecker.m b/NPMK/NPMKverChecker.m index 6d0157a..60cd4a4 100644 --- a/NPMK/NPMKverChecker.m +++ b/NPMK/NPMKverChecker.m @@ -29,15 +29,14 @@ function NPMKverChecker() % % 1.2.0.0: August 13, 2020 % - Updated to use settingsManager instead. +% +% 1.3.0.0: September 11, 2020 +% - Fixed a bug that was still creating a NPMKverChecker.dat. %% Variables and constants gitHubURL = 'https://github.com/BlackrockMicrosystems/NPMK/releases/latest'; checkver = 0; -%% Find full path of NPMKverChecker.m -fileFullPath = which('NPMKverChecker.m'); -fileFullPath = [fileFullPath(1:end-1) 'dat']; - %% Check for the latest version fo NPMK try NPMKSettings = settingsManager; @@ -55,8 +54,8 @@ function NPMKverChecker() disp('A new version of NPMK may be available.'); fprintf('Please visit GitHub NPMK Page to get the latest version.\n', gitHubURL) end - checkeddate = datetime; - save(fileFullPath, 'checkeddate'); + NPMKSettings.checkeddate = datetime; + settingsManager(NPMKSettings); end catch end \ No newline at end of file diff --git a/NPMK/Other tools/settingsManager.m b/NPMK/Other tools/settingsManager.m index 4e96e28..3c31a93 100644 --- a/NPMK/Other tools/settingsManager.m +++ b/NPMK/Other tools/settingsManager.m @@ -35,7 +35,7 @@ if exist(fullPath, 'file') == 2 if length(varargin) == 0 % Load the settings file and send as output varargout{1} = load(fullPath, '-mat'); - try varargout{1}.checkeddate; catch varargout{1}.checkeddate = now; end + try varargout{1}.checkeddate; catch varargout{1}.checkeddate = datetime; end try varargout{1}.ShowZeroPadWarning; catch varargout{1}.ShowZeroPadWarning = 1; end try varargout{1}.ShowuVWarning; catch varargout{1}.ShowuVWarning = 1; end elseif length(varargin) == 1 diff --git a/NPMK/Versions.txt b/NPMK/Versions.txt index 6fdc19d..45db143 100644 --- a/NPMK/Versions.txt +++ b/NPMK/Versions.txt @@ -425,7 +425,7 @@ NPMK Version 2.8.2.0: 5 May 2014 % openNSx 7.1.1.0: June 11, 2020 % - Fixed a bug related to fread and MATLAB 2020a. -***** NPMK Version 5.3.0.0 :September 11, 2020 ***** +***** NPMK Version 5.4.0.0 :September 11, 2020 ***** % % openNSx 7.3.0.0: September 11, 2020 % - Fixed a bug related to fread and MATLAB 2020a. @@ -439,9 +439,9 @@ NPMK Version 2.8.2.0: 5 May 2014 % settingsManager 1.0.0.0: September 11, 2020 % - Initial Release. % -% NPMKverChecer 1.2.0.0: September 11, 2020 +% NPMKverChecer 1.3.0.0: September 11, 2020 % - Updated to use settingsManager instead. +% - Fixed a bug that was still creating a NPMKverChecker.dat. - -LATEST:5.3.0.0 \ No newline at end of file +LATEST:5.4.0.0 \ No newline at end of file