auto-sync

This commit is contained in:
rusEfi 2015-08-22 13:01:35 -04:00
parent 1e8b85f126
commit e5c9bc6896
3 changed files with 5 additions and 13 deletions

View File

@ -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);
}

View File

@ -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;

View File

@ -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);