22 #AutoIt3Wrapper_Icon= Icon.ico
33 #AutoIt3Wrapper_UseX64= n
44 #AutoIt3Wrapper_Res_Description= A simple discrete glucose tooltip for Nightscout under Windows
5- #AutoIt3Wrapper_Res_Fileversion= 3.0.1 .0
5+ #AutoIt3Wrapper_Res_Fileversion= 3.0.2 .0
66 #AutoIt3Wrapper_Res_LegalCopyright= Mathias Noack
77 #AutoIt3Wrapper_Res_Language= 1031
88 #AutoIt3Wrapper_Run_Tidy= y
@@ -228,7 +228,7 @@ Func _Tooltip()
228228 If StringRegExp ($fIntervalRound , ' (.)' ) Then
229229 $iIntervalRound = Int ($fIntervalRound + 1 )
230230 Else
231- $iIntervalRound = Int ( $iMinInterval )
231+ $iIntervalRound = $iMinInterval
232232 EndIf
233233 If StringRegExp ($fIntervalRound , ' (#INF)' ) Then
234234 $iIntervalRound = Int (2 )
@@ -382,7 +382,11 @@ Func _Tooltip()
382382 If $iCheckboxTextToSpeech = 1 Then
383383 ; Read every zero minutes
384384 If $iMin == 0 Then
385- _SpeechObject_Say($oSapi , $sGlucoseTextToSpeech )
385+ If StringInStr ($sGlucoseTextToSpeech , " -" ) Then
386+ ; Speak no negative values
387+ Else
388+ _SpeechObject_Say($oSapi , $sGlucoseTextToSpeech )
389+ EndIf
386390 EndIf
387391 EndIf
388392 Sleep ($i_MsWait )
@@ -597,4 +601,4 @@ Func _CgmUpdateCheck()
597601 _DebugReportVar(" $sReturnedCgmUpdateCompare" , $sReturnedCgmUpdateCompare )
598602 _DebugReportVar(" $iCheckMerge" , $iCheckMerge )
599603 _WinHttpCloseHandle($hConnectCgmUpdateCompare )
600- EndFunc
604+ EndFunc
0 commit comments