mirror of
https://github.com/synthetos/g2.git
synced 2026-09-22 11:29:24 +08:00
Adjusted threshold precision in status report to account for FP rounding errors
This commit is contained in:
@@ -73,7 +73,7 @@
|
||||
<InterfaceName>SWD</InterfaceName>
|
||||
</ToolOptions>
|
||||
<ToolType>com.atmel.avrdbg.tool.atmelice</ToolType>
|
||||
<ToolNumber>J41800030015</ToolNumber>
|
||||
<ToolNumber>J41800036434</ToolNumber>
|
||||
<ToolName>Atmel-ICE</ToolName>
|
||||
</com_atmel_avrdbg_tool_atmelice>
|
||||
<UseGdb>True</UseGdb>
|
||||
@@ -100,7 +100,7 @@
|
||||
<HWProgramCounterSampling>True</HWProgramCounterSampling>
|
||||
</PercepioTrace>
|
||||
<preserveEEPROM>true</preserveEEPROM>
|
||||
<avrtoolserialnumber>J41800030015</avrtoolserialnumber>
|
||||
<avrtoolserialnumber>J41800036434</avrtoolserialnumber>
|
||||
<avrdeviceexpectedsignature>0x284E0A60</avrdeviceexpectedsignature>
|
||||
<avrtoolinterfaceclock>10000000</avrtoolinterfaceclock>
|
||||
<custom>
|
||||
|
||||
+1
-1
@@ -368,7 +368,7 @@ static uint8_t _populate_filtered_status_report()
|
||||
bool has_data = false;
|
||||
char tmp[TOKEN_LEN+1];
|
||||
nvObj_t *nv = nv_reset_nv_list(); // sets nv to the start of the body
|
||||
float precision[8] = { 1, 0.1, 0.01, 0.001, 0.0001, 0.00001, 0.000001, 0.0000001 };
|
||||
float precision[8] = { 0.9, 0.09, 0.009, 0.0009, 0.00009, 0.000009, 0.0000009, 0.00000009 };
|
||||
|
||||
nv->valuetype = TYPE_PARENT; // setup the parent object (no need to length check the copy)
|
||||
strcpy(nv->token, sr_str);
|
||||
|
||||
Reference in New Issue
Block a user