allow to get `MCUSERIAL` ini field from binary protocol, as well as from link manager
This commit is contained in:
parent
0e001bb9ac
commit
e0b961e8ca
|
@ -1,6 +1,7 @@
|
|||
package com.rusefi.panama;
|
||||
|
||||
import com.opensr5.ini.field.IniField;
|
||||
import com.rusefi.binaryprotocol.BinaryProtocol;
|
||||
import com.rusefi.config.generated.TsOutputs;
|
||||
import com.rusefi.core.ISensorHolder;
|
||||
import com.rusefi.core.SensorCentral;
|
||||
|
@ -9,8 +10,12 @@ import com.rusefi.io.LinkManager;
|
|||
import java.nio.ByteBuffer;
|
||||
|
||||
public class PanamaHelper {
|
||||
public static IniField getIniField(final BinaryProtocol bp) {
|
||||
return bp.getIniFile().getOutputChannel(TsOutputs.MCUSERIAL.getName());
|
||||
}
|
||||
|
||||
public static IniField getIniField(LinkManager linkManager) {
|
||||
return linkManager.getBinaryProtocol().getIniFile().getOutputChannel(TsOutputs.MCUSERIAL.getName());
|
||||
return getIniField(linkManager.getBinaryProtocol());
|
||||
}
|
||||
|
||||
public static int getMcuSerial(IniField mcuSerialField) {
|
||||
|
|
Loading…
Reference in New Issue