Project

General

Profile

Actions

Bug #871

closed

Erreur dans fonction floatToChar

Added by Veronique bouzid over 5 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Normal
Category:
-
Target version:
-
Start date:
30/12/2016
Due date:
% Done:

0%

Estimated time:
revision:
r0

Description

hello

void floatToChar( float value, unsigned char* ptr) {
unsigned char* valuePtr;

valuePtr = (unsigned char*) &value;
ptr[0] = valuePtr[0];
ptr[1] = valuePtr[0];
ptr[2] = valuePtr[0];
ptr[3] = valuePtr[0];
}

---> il y a une erreur dans cette fonction, tu recopies la meme valeur valuePtr0 dans les 4 octets destintataires.
Il faut mettre
ptr1 = valuePtr1;
ptr2 = valuePtr2;
ptr3 = valuePtr3;

Actions #1

Updated by paul leroy over 5 years ago

  • Status changed from New to Resolved

bien vu, corrigé pour fsw >= 3.1.0.5

Actions #2

Updated by paul leroy over 5 years ago

  • Assignee changed from paul leroy to Veronique bouzid
Actions #3

Updated by Veronique bouzid over 5 years ago

  • Status changed from Resolved to Closed

Bug corrigé en 3.1.0.6.
Voir point redmine #707.
Le script utilisé pour validé est /home/validation/SCRIPT/R3+/set_load_filter_par.py.

Actions

Also available in: Atom PDF