Mercurial > public > ostc4
comparison Small_CPU/Src/pressure.c @ 579:4644891d2f51
Minor: Functional inert cleanup of some unused variables
author | heinrichsweikamp |
---|---|
date | Thu, 03 Dec 2020 13:17:32 +0100 |
parents | 666cafac87ab |
children | 8c92f7743e14 |
comparison
equal
deleted
inserted
replaced
578:beb4d47542f1 | 579:4644891d2f51 |
---|---|
74 static uint16_t C[8] = { 1 }; | 74 static uint16_t C[8] = { 1 }; |
75 static uint32_t D1 = 1; | 75 static uint32_t D1 = 1; |
76 static uint32_t D2 = 1; | 76 static uint32_t D2 = 1; |
77 //static uint8_t n_crc; | 77 //static uint8_t n_crc; |
78 | 78 |
79 static int64_t C5_x_2p8 = 1; | |
80 static int64_t C2_x_2p16 = 1; | |
81 static int64_t C1_x_2p15 = 1; | |
82 | |
83 /* | 79 /* |
84 short C2plus10000 = -1; | 80 short C2plus10000 = -1; |
85 short C3plus200 = -1; | 81 short C3plus200 = -1; |
86 short C4minus250 = -1; | 82 short C4minus250 = -1; |
87 short UT1 = -1; | 83 short UT1 = -1; |
363 { | 359 { |
364 C[i] = get_ci_by_coef_num(i); | 360 C[i] = get_ci_by_coef_num(i); |
365 } | 361 } |
366 // n_crc = crc4(C); // no evaluation at the moment hw 151026 | 362 // n_crc = crc4(C); // no evaluation at the moment hw 151026 |
367 | 363 |
368 C5_x_2p8 = C[5] * 256; | |
369 C2_x_2p16 = C[2] * 65536; | |
370 C1_x_2p15 = C[1] * 32768; | |
371 | |
372 if(global.I2C_SystemStatus == HAL_OK) | 364 if(global.I2C_SystemStatus == HAL_OK) |
373 { | 365 { |
374 pressureSensorInitSuccess = 1; | 366 pressureSensorInitSuccess = 1; |
375 retValue = pressure_update(); | 367 retValue = pressure_update(); |
376 } | 368 } |