Upgraded to later CAN module

fixed type
This commit is contained in:
johannes
2023-01-23 11:32:15 +01:00
parent fada3b0cba
commit 7de1ca7d1d
6 changed files with 12 additions and 4 deletions
+2 -2
View File
@@ -60,7 +60,7 @@ extern "C" const TERM_CMD termCmds[] =
{ NULL, NULL }
};
static void PrintCanMap(Param::PARAM_NUM param, uint32_t canid, uint8_t offset, uint8_t length, float gain, bool rx)
void PrintCanMap(Param::PARAM_NUM param, uint32_t canid, uint8_t offsetBits, uint8_t length, float gain, int8_t offset, bool rx)
{
const char* name = Param::GetAttrib(param)->name;
fprintf(curTerm, "can ");
@@ -69,7 +69,7 @@ static void PrintCanMap(Param::PARAM_NUM param, uint32_t canid, uint8_t offset,
fprintf(curTerm, "rx ");
else
fprintf(curTerm, "tx ");
fprintf(curTerm, "%s %d %d %d %f\r\n", name, canid, offset, length, FP_FROMFLT(gain));
fprintf(curTerm, "%s %d %d %d %f %d\r\n", name, canid, offsetBits, length, FP_FROMFLT(gain), offset);
}
//cantx param id offset len gain