Skip to content

Commit

Permalink
commit git files and editorconfig
Browse files Browse the repository at this point in the history
  • Loading branch information
kermage committed May 23, 2020
1 parent 9f2189c commit 3988858
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 5 deletions.
9 changes: 9 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
root = true

[*]
indent_style = space
indent_size = 4
end_of_line = crlf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* text=auto eol=crlf
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/DebugVars
2 changes: 1 addition & 1 deletion MD5Hash.ahk
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ StringMD5( ByRef V, L = 0 ) {
return MD5
}

FileMD5( sFile = "", cSz = 4 ) {
FileMD5( sFile = "", cSz = 4 ) {
cSz := ( cSz<0 || cSz>8 ) ? 2**22 : 2**( 18+cSz ), VarSetCapacity( Buffer, cSz, 0 )
hFil := DllCall( "CreateFile", Str, sFile, UInt, 0x80000000, Int, 1, Int, 0, Int, 3, Int, 0, Int, 0 )
IfLess, hFil, 1, return, hFil
Expand Down
6 changes: 3 additions & 3 deletions SerialPort.ahk
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class SerialPort {
; ###### Extract/Format the COM Port Number ######
SERIAL_Port_Temp := StrSplit( _Settings, "`:" )
if ( StrLen( SERIAL_Port_Temp[1] ) > 4 ) ; For COM Ports > 9 \\.\ needs to prepended to the COM Port name.
SERIAL_Port := "\\.\" SERIAL_Port_Temp[1] ; So the valid names are
SERIAL_Port := "\\.\" SERIAL_Port_Temp[1] ; So the valid names are
else ; ... COM8 COM9 \\.\COM10 \\.\COM11 \\.\COM12 and so on...
SERIAL_Port := SERIAL_Port_Temp[1]
; MsgBox, SERIAL_Port=%SERIAL_Port%
Expand Down Expand Up @@ -154,7 +154,7 @@ class SerialPort {
}

Send( _Data ) {
Loop, Parse, _Data
Loop, Parse, _Data
str .= "," Asc( A_LoopField )

str := SubStr( str, 2, StrLen( str ) - 1 )
Expand All @@ -167,7 +167,7 @@ class SerialPort {
Read_Data := this.Read( _Length )

Loop % StrLen( Read_Data ) / 2
{
{
Byte := SubStr( Read_Data, 1, 2 )
Read_Data := SubStr( Read_Data, 3, StrLen( Read_Data ) )
Byte := "0x" Byte
Expand Down
2 changes: 1 addition & 1 deletion StringM.ahk
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ StringM( _String, _Option, _Param1 = "", _Param2 = "" ) {
Loop, Parse, _Unique
{
StringReplace, _String, _String, % A_LoopField,, UseErrorLevel
_NewString .= A_LoopField . ErrorLevel
_NewString .= A_LoopField . ErrorLevel
}
}
else if ( _Option = "Repeat" )
Expand Down

0 comments on commit 3988858

Please sign in to comment.