mirror of https://github.com/rusefi/rusefi-1.git
docs & code formatting
This commit is contained in:
parent
1d328c17e8
commit
7dfdfc6378
|
@ -1,4 +1,4 @@
|
|||
// this section was generated automatically by rusEfi tool ConfigDefinition.jar based on integration/rusefi_config.txt Tue Nov 19 09:22:43 EST 2019
|
||||
// this section was generated automatically by rusEfi tool ConfigDefinition.jar based on integration/rusefi_config.txt Tue Nov 19 09:23:08 EST 2019
|
||||
// by class com.rusefi.output.CHeaderConsumer
|
||||
// begin
|
||||
#ifndef CONFIG_BOARDS_KINETIS_CONFIG_CONTROLLERS_ALGO_ENGINE_CONFIGURATION_GENERATED_STRUCTURES_H
|
||||
|
@ -2737,7 +2737,8 @@ struct board_configuration_s {
|
|||
*/
|
||||
can_device_mode_e canDeviceMode;
|
||||
/**
|
||||
* Each rusEfi piece can provide synthetic trigger signal for external ECU. Sometimes these wires are routed back into trigger inputs of the same rusEfi board. See also directSelfStimulation which is different.
|
||||
* Each rusEfi piece can provide synthetic trigger signal for external ECU. Sometimes these wires are routed back into trigger inputs of the same rusEfi board.
|
||||
* See also directSelfStimulation which is different.
|
||||
* offset 136
|
||||
*/
|
||||
brain_pin_e triggerSimulatorPins[TRIGGER_SIMULATOR_PIN_COUNT];
|
||||
|
@ -4947,4 +4948,4 @@ typedef struct persistent_config_s persistent_config_s;
|
|||
|
||||
#endif
|
||||
// end
|
||||
// this section was generated automatically by rusEfi tool ConfigDefinition.jar based on integration/rusefi_config.txt Tue Nov 19 09:22:43 EST 2019
|
||||
// this section was generated automatically by rusEfi tool ConfigDefinition.jar based on integration/rusefi_config.txt Tue Nov 19 09:23:08 EST 2019
|
||||
|
|
|
@ -108,7 +108,9 @@ void nmea_parse_gpgga(char *nmea, loc_t *loc) {
|
|||
|
||||
p = strchr(p, ',') + 1; // in p string started with searching address
|
||||
str_till_comma(p, dStr); // str to float till comma saved modified string
|
||||
if(strlen(p) == 0) return; // if no data in field - empty data - we return
|
||||
if (strlen(p) == 0) {
|
||||
return; // if no data in field - empty data - we return
|
||||
}
|
||||
|
||||
loc->latitude = atoff(dStr); // fulfil data
|
||||
|
||||
|
|
|
@ -32,16 +32,14 @@ bool TwoPinDcMotor::Set(float duty)
|
|||
|
||||
bool isPositive = duty > 0;
|
||||
|
||||
if(!isPositive)
|
||||
{
|
||||
if (!isPositive) {
|
||||
duty = -duty;
|
||||
}
|
||||
|
||||
// below here 'duty' is a not negative
|
||||
|
||||
// Clamp to 100%
|
||||
if(duty > 1.0f)
|
||||
{
|
||||
if (duty > 1.0f) {
|
||||
duty = 1.0f;
|
||||
}
|
||||
// Disable for very small duty
|
||||
|
|
|
@ -422,8 +422,7 @@ static void printFullAdcReport(Logging *logger) {
|
|||
|
||||
adc_channel_e hwIndex = slowAdc.getAdcHardwareIndexByInternalIndex(index);
|
||||
|
||||
if(hwIndex != EFI_ADC_NONE && hwIndex != EFI_ADC_ERROR)
|
||||
{
|
||||
if (hwIndex != EFI_ADC_NONE && hwIndex != EFI_ADC_ERROR) {
|
||||
ioportid_t port = getAdcChannelPort("print", hwIndex);
|
||||
int pin = getAdcChannelPin(hwIndex);
|
||||
|
||||
|
@ -600,8 +599,6 @@ void initAdcInputs() {
|
|||
#endif /* HAL_USE_PWM */
|
||||
}
|
||||
|
||||
//if(slowAdcChannelCount > ADC_MAX_SLOW_CHANNELS_COUNT) // todo: do we need this logic? do we need this check
|
||||
|
||||
addConsoleActionI("adc", (VoidInt) printAdcValue);
|
||||
#else
|
||||
printMsg(&logger, "ADC disabled");
|
||||
|
|
Loading…
Reference in New Issue