# HG changeset patch # User Ideenmodellierer # Date 1659705010 -7200 # Node ID 5e99739573186fb88af2ab02d23ef7a471c63717 # Parent b1e24513b83e3b04875dfe36838d6cb41d926f22 Increased version numbers: increased RTE version because of interface change and firmware as well to have a better indicator of the versions used during beta test phase. diff -r b1e24513b83e -r 5e9973957318 Discovery/Src/settings.c --- a/Discovery/Src/settings.c Fri Aug 05 14:56:17 2022 +0200 +++ b/Discovery/Src/settings.c Fri Aug 05 15:10:10 2022 +0200 @@ -41,7 +41,7 @@ SSettings Settings; const uint8_t RTErequiredHigh = 2; -const uint8_t RTErequiredLow = 7; +const uint8_t RTErequiredLow = 9; const uint8_t FONTrequiredHigh = 1; const uint8_t FONTrequiredLow = 0; @@ -60,7 +60,7 @@ { .versionFirst = 1, .versionSecond = 5, - .versionThird = 9, + .versionThird = 10, .versionBeta = 0, /* 4 bytes with trailing 0 */ @@ -87,7 +87,7 @@ * There might even be entries with fixed values that have no range */ const SSettings SettingsStandard = { - .header = 0xFFFF0021, + .header = 0xFFFF0022, .warning_blink_dsec = 8 * 2, .lastDiveLogId = 0, .logFlashNextSampleStartAddress = SAMPLESTART, @@ -499,6 +499,9 @@ case 0xFFFF0020: pSettings->co2_sensor_active = 0; // no break; + case 0xFFFF0021: + pSettings->ext_uart_protocol = 0; + // no break; default: pSettings->header = pStandard->header; break; // no break before!! @@ -1487,6 +1490,11 @@ Settings.co2_sensor_active = 0; corrections++; } + if(Settings.co2_sensor_active > UART_MAX_PROTOCOL) + { + Settings.ext_uart_protocol = 0; + corrections++; + } if(corrections) { diff -r b1e24513b83e -r 5e9973957318 Small_CPU/Src/baseCPU2.c --- a/Small_CPU/Src/baseCPU2.c Fri Aug 05 14:56:17 2022 +0200 +++ b/Small_CPU/Src/baseCPU2.c Fri Aug 05 15:10:10 2022 +0200 @@ -166,7 +166,7 @@ // See CPU2-RTE.ld const SFirmwareData cpu2_FirmwareData __attribute__(( section(".firmware_data") ))= { .versionFirst = 2, - .versionSecond = 8, + .versionSecond = 9, .versionThird = 0, .versionBeta = 1,