auto-sync
This commit is contained in:
parent
30127ff23a
commit
bd0a38e6c4
|
@ -759,13 +759,6 @@ int tunerStudioHandleCrcCommand(ts_channel_s *tsChannel, char *data, int incomin
|
|||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* we use 'blockingFactor = 256' in rusefi.ini
|
||||
* todo: should we just do (256 + CRC_WRAPPING_SIZE) ?
|
||||
*/
|
||||
|
||||
static uint8_t tsCrcWriteBuffer[300];
|
||||
|
||||
void startTunerStudioConnectivity(void) {
|
||||
if (sizeof(persistent_config_s) != getTunerStudioPageSize(0))
|
||||
firmwareError("TS page size mismatch: %d/%d", sizeof(persistent_config_s), getTunerStudioPageSize(0));
|
||||
|
@ -781,7 +774,6 @@ void startTunerStudioConnectivity(void) {
|
|||
addConsoleActionI("set_ts_speed", setTsSpeed);
|
||||
|
||||
tsChannel.channel = getTsSerialDevice();
|
||||
tsChannel.writeBuffer = tsCrcWriteBuffer;
|
||||
|
||||
chThdCreateStatic(tsThreadStack, sizeof(tsThreadStack), NORMALPRIO, tsThreadEntryPoint, NULL);
|
||||
}
|
||||
|
|
|
@ -35,7 +35,11 @@ typedef enum {
|
|||
|
||||
typedef struct {
|
||||
BaseChannel * channel;
|
||||
uint8_t *writeBuffer;
|
||||
/**
|
||||
* we use 'blockingFactor = 256' in rusefi.ini
|
||||
* todo: should we just do (256 + CRC_WRAPPING_SIZE) ?
|
||||
*/
|
||||
uint8_t writeBuffer[300];
|
||||
char crcReadBuffer[300];
|
||||
} ts_channel_s;
|
||||
|
||||
|
|
|
@ -163,8 +163,6 @@ bool_t consoleInBinaryMode = false;
|
|||
|
||||
ts_channel_s binaryConsole;
|
||||
|
||||
uint8_t buffer[DL_OUTPUT_BUFFER];
|
||||
|
||||
static THD_WORKING_AREA(consoleThreadStack, 2 * UTILITY_THREAD_STACK_SIZE);
|
||||
static msg_t consoleThreadThreadEntryPoint(void *arg) {
|
||||
(void) arg;
|
||||
|
@ -180,8 +178,6 @@ static msg_t consoleThreadThreadEntryPoint(void *arg) {
|
|||
#endif /* EFI_PROD_CODE */
|
||||
|
||||
binaryConsole.channel = (BaseChannel *) getConsoleChannel();
|
||||
// todo: clean this spot!
|
||||
binaryConsole.writeBuffer = buffer;
|
||||
|
||||
while (true) {
|
||||
efiAssert(getRemainingStack(chThdSelf()) > 256, "lowstck#9e", 0);
|
||||
|
|
Loading…
Reference in New Issue