forked from Dniel97/segatools
Spelling and formatting fixes
This commit is contained in:
parent
960bef65dd
commit
ac6a8dde1b
@ -63,7 +63,7 @@ void chuni_io_config_load(
|
|||||||
cfg->controller_led_output_pipe = GetPrivateProfileIntW(L"led", L"controllerLedOutputPipe", 1, filename);
|
cfg->controller_led_output_pipe = GetPrivateProfileIntW(L"led", L"controllerLedOutputPipe", 1, filename);
|
||||||
cfg->controller_led_output_serial = GetPrivateProfileIntW(L"led", L"controllerLedOutputSerial", 0, filename);
|
cfg->controller_led_output_serial = GetPrivateProfileIntW(L"led", L"controllerLedOutputSerial", 0, filename);
|
||||||
|
|
||||||
cfg->controller_led_output_openithm = GetPrivateProfileIntW(L"led", L"controllerLedOutputOpenITHM", 0, filename);
|
cfg->controller_led_output_openithm = GetPrivateProfileIntW(L"led", L"controllerLedOutputOpeNITHM", 0, filename);
|
||||||
|
|
||||||
cfg->led_serial_baud = GetPrivateProfileIntW(L"led", L"serialBaud", 921600, filename);
|
cfg->led_serial_baud = GetPrivateProfileIntW(L"led", L"serialBaud", 921600, filename);
|
||||||
|
|
||||||
|
@ -99,13 +99,12 @@ void led_serial_update(struct _chuni_led_data_buf_t* data)
|
|||||||
}
|
}
|
||||||
|
|
||||||
void led_serial_update_openithm(const byte* rgb)
|
void led_serial_update_openithm(const byte* rgb)
|
||||||
|
|
||||||
{
|
{
|
||||||
if (serial_port != INVALID_HANDLE_VALUE)
|
if (serial_port != INVALID_HANDLE_VALUE)
|
||||||
{
|
{
|
||||||
char led_buffer[100];
|
char led_buffer[100];
|
||||||
DWORD bytes_to_write; // No of bytes to write into the port
|
DWORD bytes_to_write; // No of bytes to write into the port
|
||||||
DWORD bytes_written = 0; // No of bytes written to the port
|
DWORD bytes_written = 0; // No of bytes written to the port
|
||||||
bytes_to_write = sizeof(led_buffer);
|
bytes_to_write = sizeof(led_buffer);
|
||||||
BOOL status;
|
BOOL status;
|
||||||
|
|
||||||
@ -115,11 +114,10 @@ void led_serial_update_openithm(const byte* rgb)
|
|||||||
led_buffer[98] = 0xDD;
|
led_buffer[98] = 0xDD;
|
||||||
led_buffer[99] = 0xDD;
|
led_buffer[99] = 0xDD;
|
||||||
|
|
||||||
status = WriteFile(serial_port, // Handle to the Serial port
|
status = WriteFile(serial_port, // Handle to the Serial port
|
||||||
led_buffer, // Data to be written to the port
|
led_buffer, // Data to be written to the port
|
||||||
bytes_to_write, //No of bytes to write
|
bytes_to_write, // No of bytes to write
|
||||||
&bytes_written, //Bytes written
|
&bytes_written, // Bytes written
|
||||||
NULL);
|
NULL);
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
6
dist/chuni/segatools.ini
vendored
6
dist/chuni/segatools.ini
vendored
@ -82,12 +82,12 @@ cabLedOutputSerial=0
|
|||||||
controllerLedOutputPipe=1
|
controllerLedOutputPipe=1
|
||||||
; Output slider LED data to the serial port
|
; Output slider LED data to the serial port
|
||||||
controllerLedOutputSerial=0
|
controllerLedOutputSerial=0
|
||||||
; Use the OpenITHM protocol for serial LED output
|
; Use the OpeNITHM protocol for serial LED output
|
||||||
controllerLedOutputOpenITHM=0
|
controllerLedOutputOpeNITHM=0
|
||||||
|
|
||||||
; Serial port to send data to if using serial output. Default is COM5.
|
; Serial port to send data to if using serial output. Default is COM5.
|
||||||
;serialPort=COM5
|
;serialPort=COM5
|
||||||
; Baud rate for serial data (set to 115200 if using OpenITHM)
|
; Baud rate for serial data (set to 115200 if using OpeNITHM)
|
||||||
;serialBaud=921600
|
;serialBaud=921600
|
||||||
|
|
||||||
; Data output a sequence of bytes, with JVS-like framing.
|
; Data output a sequence of bytes, with JVS-like framing.
|
||||||
|
6
dist/chusan/segatools.ini
vendored
6
dist/chusan/segatools.ini
vendored
@ -108,12 +108,12 @@ cabLedOutputSerial=0
|
|||||||
controllerLedOutputPipe=1
|
controllerLedOutputPipe=1
|
||||||
; Output slider LED data to the serial port
|
; Output slider LED data to the serial port
|
||||||
controllerLedOutputSerial=0
|
controllerLedOutputSerial=0
|
||||||
; Use the OpenITHM protocol for serial LED output
|
; Use the OpeNITHM protocol for serial LED output
|
||||||
controllerLedOutputOpenITHM=0
|
controllerLedOutputOpeNITHM=0
|
||||||
|
|
||||||
; Serial port to send data to if using serial output. Default is COM5.
|
; Serial port to send data to if using serial output. Default is COM5.
|
||||||
;serialPort=COM5
|
;serialPort=COM5
|
||||||
; Baud rate for serial data (set to 115200 if using OpenITHM)
|
; Baud rate for serial data (set to 115200 if using OpeNITHM)
|
||||||
;serialBaud=921600
|
;serialBaud=921600
|
||||||
|
|
||||||
; Data output a sequence of bytes, with JVS-like framing.
|
; Data output a sequence of bytes, with JVS-like framing.
|
||||||
|
Loading…
Reference in New Issue
Block a user