You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is a problem in part: other_MI2C_24CXXX.
When the "load" button is clicked, it will save the memory into the selected file instead.
I have found a fix for the problem. See the patch below.
Sorry, but I can not create a proper pull request since I already have a fork of picsimlab with other changes.
To Reproduce
Click the "load" button of the 24CXXX part.
Select a file to load and click "Open".
A warning popup will open with a warning about overwriting the file (instead of loading it).
Patch
diff --git a/src/parts/other_MI2C_24CXXX.cc b/src/parts/other_MI2C_24CXXX.cc
index 9fd0cd21..3e140903 100644
--- a/src/parts/other_MI2C_24CXXX.cc
+++ b/src/parts/other_MI2C_24CXXX.cc
@@ -375,7 +375,7 @@ void cpart_MI2C_24CXXX::filedialog_EvOnClose(int retId) {
if (retId) {
int type;
SpareParts.WindowCmd(PW_MAIN, "filedialog1", PWA_FILEDIALOGGETTYPE, NULL, &type);
- if ((type == (PFD_OPEN | PFD_CHANGE_DIR))) {
+ if ((type == (PFD_SAVE | PFD_CHANGE_DIR))) {
char buff[200];
SpareParts.WindowCmd(PW_MAIN, "filedialog1", PWA_FILEDIALOGGETFNAME, NULL, buff);
if (PICSimLab.SystemCmd(PSC_FILEEXISTS, buff)) {
The text was updated successfully, but these errors were encountered:
There is a problem in part: other_MI2C_24CXXX.
When the "load" button is clicked, it will save the memory into the selected file instead.
I have found a fix for the problem. See the patch below.
Sorry, but I can not create a proper pull request since I already have a fork of picsimlab with other changes.
To Reproduce
Patch
The text was updated successfully, but these errors were encountered: