reducing code duplication

This commit is contained in:
rusefi 2020-06-24 00:16:38 -04:00
parent e62072adee
commit 895e08c4e9
1 changed files with 3 additions and 3 deletions

View File

@ -9,9 +9,9 @@ import com.rusefi.config.generated.Fields;
public interface BinaryProtocolCommands { public interface BinaryProtocolCommands {
// see BLOCKING_FACTOR in firmware code // see BLOCKING_FACTOR in firmware code
int BLOCKING_FACTOR = Fields.BLOCKING_FACTOR; int BLOCKING_FACTOR = Fields.BLOCKING_FACTOR;
byte RESPONSE_OK = 0; byte RESPONSE_OK = Fields.TS_RESPONSE_OK;
byte RESPONSE_BURN_OK = 0x04; byte RESPONSE_BURN_OK = Fields.TS_RESPONSE_BURN_OK;
byte RESPONSE_COMMAND_OK = 0x07; byte RESPONSE_COMMAND_OK = Fields.TS_RESPONSE_COMMAND_OK;
char COMMAND_HELLO = Fields.TS_HELLO_COMMAND; char COMMAND_HELLO = Fields.TS_HELLO_COMMAND;
char COMMAND_PROTOCOL = 'F'; char COMMAND_PROTOCOL = 'F';
// todo: make crc32CheckCommand shorted one day later - no need in 6 empty bytes // todo: make crc32CheckCommand shorted one day later - no need in 6 empty bytes