diff options
author | Attila Veghelyi <works@veghelyiattila.hu> | 2024-06-25 20:25:31 +0200 |
---|---|---|
committer | Attila Veghelyi <works@veghelyiattila.hu> | 2024-06-25 20:25:31 +0200 |
commit | 5f686d5179d6a23a37378550b8c1122453d240c1 (patch) | |
tree | 423d6dbd1fa19a6487abb67c8da1c102ea9748b5 /progEEPROM.c | |
parent | 2ec9ceca347f2052a0884e115a5198e5ea716262 (diff) | |
download | OpenProgrammer-hotfix/fix-original.tar.gz OpenProgrammer-hotfix/fix-original.zip |
Stop the process when device ID is unknownhotfix/fix-original
Diffstat (limited to 'progEEPROM.c')
-rw-r--r-- | progEEPROM.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/progEEPROM.c b/progEEPROM.c index f0e8259..fa6d138 100644 --- a/progEEPROM.c +++ b/progEEPROM.c @@ -1555,7 +1555,7 @@ struct ID_OW{ {0x43,"DS28EC20\r\n"}, }; -void OW_ID(int id) +static bool OW_ID(int id) { char s[64]; int i; @@ -1563,11 +1563,11 @@ void OW_ID(int id) if(id==OW_LIST[i].id){ sprintf(s,OW_LIST[i].device,id); PrintMessage(s); - return; + return true; } } - sprintf(s,"%s",strings[S_nodev]); //"Unknown device\r\n"); - PrintMessage(s); + PrintMessage(strings[S_nodev]); //"Unknown device\r\n"); + return false; } #define READ_ROM 0x33 |