File tree 3 files changed +6
-6
lines changed
3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -122,14 +122,14 @@ int app_cbor_encode(zcbor_state_t *zs)
122
122
if (isnan (g_app_data .batt_voltage_rest )) {
123
123
zcbor_nil_put (zs , NULL );
124
124
} else {
125
- zcbor_uint32_put (zs , g_app_data .batt_voltage_rest * 1000.f );
125
+ zcbor_uint32_put (zs , g_app_data .batt_voltage_rest );
126
126
}
127
127
128
128
zcbor_uint32_put (zs , MSG_KEY_VOLTAGE_LOAD );
129
129
if (isnan (g_app_data .batt_voltage_load )) {
130
130
zcbor_nil_put (zs , NULL );
131
131
} else {
132
- zcbor_uint32_put (zs , g_app_data .batt_voltage_load * 1000.f );
132
+ zcbor_uint32_put (zs , g_app_data .batt_voltage_load );
133
133
}
134
134
135
135
zcbor_uint32_put (zs , MSG_KEY_CURRENT_LOAD );
Original file line number Diff line number Diff line change @@ -182,14 +182,14 @@ static int encode(zcbor_state_t *zs)
182
182
if (isnan (g_app_data .system_voltage_rest )) {
183
183
zcbor_nil_put (zs , NULL );
184
184
} else {
185
- zcbor_uint32_put (zs , g_app_data .system_voltage_rest * 1000.f );
185
+ zcbor_uint32_put (zs , g_app_data .system_voltage_rest );
186
186
}
187
187
188
188
zcbor_uint32_put (zs , CODEC_KEY_E_SYSTEM__VOLTAGE_LOAD );
189
189
if (isnan (g_app_data .system_voltage_load )) {
190
190
zcbor_nil_put (zs , NULL );
191
191
} else {
192
- zcbor_uint32_put (zs , g_app_data .system_voltage_load * 1000.f );
192
+ zcbor_uint32_put (zs , g_app_data .system_voltage_load );
193
193
}
194
194
195
195
zcbor_uint32_put (zs , CODEC_KEY_E_SYSTEM__CURRENT_LOAD );
Original file line number Diff line number Diff line change @@ -181,14 +181,14 @@ static int encode(zcbor_state_t *zs)
181
181
if (isnan (g_app_data .system_voltage_rest )) {
182
182
zcbor_nil_put (zs , NULL );
183
183
} else {
184
- zcbor_uint32_put (zs , g_app_data .system_voltage_rest * 1000.f );
184
+ zcbor_uint32_put (zs , g_app_data .system_voltage_rest );
185
185
}
186
186
187
187
zcbor_uint32_put (zs , CODEC_KEY_E_SYSTEM__VOLTAGE_LOAD );
188
188
if (isnan (g_app_data .system_voltage_load )) {
189
189
zcbor_nil_put (zs , NULL );
190
190
} else {
191
- zcbor_uint32_put (zs , g_app_data .system_voltage_load * 1000.f );
191
+ zcbor_uint32_put (zs , g_app_data .system_voltage_load );
192
192
}
193
193
194
194
zcbor_uint32_put (zs , CODEC_KEY_E_SYSTEM__CURRENT_LOAD );
You can’t perform that action at this time.
0 commit comments