Skip to content

Commit f7350be

Browse files
committed
Fixed beep when HMIShell connected to JSON-SCADA Shell API
1 parent 918aceb commit f7350be

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed

hmishell/exit_u.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
//---------------------------------------------------------------------------
2-
// HMI SHELL - Copyright 2008-2018 - Ricardo L. Olsen
2+
// HMI SHELL - Copyright 2008-2021 - Ricardo L. Olsen
33
/*
44
This program is free software: you can redistribute it and/or modify
55
it under the terms of the GNU General Public License as published by

hmishell/exit_u.dfm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ object fmSair: TfmSair
3030
Width = 200
3131
Height = 13
3232
Alignment = taCenter
33-
Caption = 'OSHMI SHELL V6.25 © 2008-2021 - RLO'
33+
Caption = 'OSHMI SHELL V6.26 © 2008-2021 - RLO'
3434
end
3535
object lbSenha: TLabel
3636
Left = 24

hmishell/shell_u.cpp

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
//---------------------------------------------------------------------------
2-
// HMI SHELL - Copyright 2008-2018 - Ricardo L. Olsen
2+
// HMI SHELL - Copyright 2008-2021 - Ricardo L. Olsen
33
//
44
// Este programa tem por objetivo proporcionar um shell para o Windows
55
// específico para controlar o IHM. De forma a restringir o acesso
@@ -785,10 +785,14 @@ tbHist->Enabled = true;
785785
tbAnormais->Enabled = true;
786786
tbTabular->Enabled = true;
787787
tbCurvas->Enabled = true;
788-
if ( NMHTTP1->Body.Pos("'beep': 1") || NMHTTP1->Body.Pos("\"beep\": 1") )
788+
if ( NMHTTP1->Body.Pos("'beep': 1") || NMHTTP1->Body.Pos("\"beep\": 1") ||
789+
NMHTTP1->Body.Pos("'beep':1") || NMHTTP1->Body.Pos("\"beep\":1")
790+
)
789791
AtivaBeep( BEEP_NORMAL );
790792
else
791-
if ( NMHTTP1->Body.Pos("'beep': 2") || NMHTTP1->Body.Pos("\"beep\": 2") )
793+
if ( NMHTTP1->Body.Pos("'beep': 2") || NMHTTP1->Body.Pos("\"beep\": 2") ||
794+
NMHTTP1->Body.Pos("'beep':2") || NMHTTP1->Body.Pos("\"beep\":2")
795+
)
792796
AtivaBeep( BEEP_CRITICO );
793797
else
794798
SilenciaBeep();

0 commit comments

Comments
 (0)