mirror of https://github.com/rusefi/bldc.git
Updated changelog and some tweaks
This commit is contained in:
parent
478a385bf7
commit
572343fd18
|
@ -5,6 +5,7 @@
|
|||
* Support for curly braces instead of progn.
|
||||
* Added set and setq.
|
||||
* Added defunret.
|
||||
* Added support for detaching only one of the ADCs.
|
||||
* Hall sensors: smooth transition to sensorless.
|
||||
|
||||
### 6.02
|
||||
|
|
|
@ -217,13 +217,14 @@ static void output_vt_cb(void *arg) {
|
|||
* @return
|
||||
* CRC16 (with crc field in struct temporarily set to zero).
|
||||
*/
|
||||
unsigned app_calc_crc(app_configuration* conf) {
|
||||
if(NULL == conf)
|
||||
unsigned short app_calc_crc(app_configuration* conf) {
|
||||
if (NULL == conf) {
|
||||
conf = &appconf;
|
||||
}
|
||||
|
||||
unsigned crc_old = conf->crc;
|
||||
unsigned short crc_old = conf->crc;
|
||||
conf->crc = 0;
|
||||
unsigned crc_new = crc16((uint8_t*)conf, sizeof(app_configuration));
|
||||
unsigned short crc_new = crc16((uint8_t*)conf, sizeof(app_configuration));
|
||||
conf->crc = crc_old;
|
||||
return crc_new;
|
||||
}
|
||||
|
|
|
@ -27,7 +27,7 @@ const app_configuration* app_get_configuration(void);
|
|||
void app_set_configuration(app_configuration *conf);
|
||||
void app_disable_output(int time_ms);
|
||||
bool app_is_output_disabled(void);
|
||||
unsigned app_calc_crc(app_configuration* conf);
|
||||
unsigned short app_calc_crc(app_configuration* conf);
|
||||
|
||||
// Standard apps
|
||||
void app_ppm_start(void);
|
||||
|
|
|
@ -24,7 +24,7 @@
|
|||
#define FW_VERSION_MAJOR 6
|
||||
#define FW_VERSION_MINOR 05
|
||||
// Set to 0 for building a release and iterate during beta test builds
|
||||
#define FW_TEST_VERSION_NUMBER 2
|
||||
#define FW_TEST_VERSION_NUMBER 3
|
||||
|
||||
#include "datatypes.h"
|
||||
|
||||
|
|
2
main.c
2
main.c
|
@ -240,7 +240,7 @@ int main(void) {
|
|||
timer_init();
|
||||
conf_general_init();
|
||||
|
||||
if( flash_helper_verify_flash_memory() == FAULT_CODE_FLASH_CORRUPTION ) {
|
||||
if (flash_helper_verify_flash_memory() == FAULT_CODE_FLASH_CORRUPTION) {
|
||||
// Loop here, it is not safe to run any code
|
||||
while (1) {
|
||||
chThdSleepMilliseconds(100);
|
||||
|
|
|
@ -2962,7 +2962,7 @@ static THD_FUNCTION(fault_stop_thread, arg) {
|
|||
unsigned mc_interface_calc_crc(mc_configuration* conf_in, bool is_motor_2) {
|
||||
volatile mc_configuration* conf = conf_in;
|
||||
|
||||
if(conf == NULL) {
|
||||
if (conf == NULL) {
|
||||
if(is_motor_2) {
|
||||
#ifdef HW_HAS_DUAL_MOTORS
|
||||
conf = &(m_motor_2.m_conf);
|
||||
|
|
Loading…
Reference in New Issue