Skip to content

Conversation

@usaskkarlherm
Copy link
Contributor

Added implementation of the error manager, and removed todo's

Copy link
Contributor

@TheDopplerEffects TheDopplerEffects left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • Quite a few files were missed
  • Mana cases of if statements missing block quotes I.e.
if (error)
    reportError;
    return error;      // this line should be skipped when error = 0 but is run anyway because it is not in {}
  • Files such as RI2c.c are missing.

Please double-check your repo.

Comment on lines +317 to +321
<<<<<<< HEAD
// transmit WDOG pet to transmitter module
=======
// transmit WDOG reset_t to transmitter module
>>>>>>> aa164ee08d0f9195d610920edab623484dec5094
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the remnants of a failed Merge that didn't get resolved.

Comment on lines +307 to +311
<<<<<<< HEAD
// transmit WDOG pet to receiver module
=======
// transmit WDOG reset_t to receiver module
>>>>>>> aa164ee08d0f9195d610920edab623484dec5094
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the remnants of a failed Merge that didn't get resolved.

Comment on lines +72 to +74
if (error != SUCCESS)
errorReportModule(moduleFram , error);
return error;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if (error != SUCCESS)
errorReportModule(moduleFram , error);
return error;
if (error != SUCCESS) {
errorReportModule(moduleFram , error);
return error;
}

Comment on lines +67 to +69
if (error != SUCCESS)
errorReportModule(moduleFram , error);
return error;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if (error != SUCCESS)
errorReportModule(moduleFram , error);
return error;
if (error != SUCCESS) {
errorReportModule(moduleFram , error);
return error;
}

Comment on lines +61 to +63
if (error != SUCCESS)
errorReportModule(moduleFram , error);
return error;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if (error != SUCCESS)
errorReportModule(moduleFram , error);
return error;
if (error != SUCCESS) {
errorReportModule(moduleFram , error);
return error;
}


int error = IsisTrxvu_rcGetCommandFrame(TRANSCEIVER_INDEX, &frame);

// provide the size of the message to the caller
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missed init and null pointer error. Check hole file


errorReportComponent(componentTransceiver,error);

return error;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
return error;

Comment on lines 243 to 245
if (error)
errorReportComponent(componentTransceiver,error);
return error;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if (error)
errorReportComponent(componentTransceiver,error);
return error;
if (error){
errorReportComponent(componentTransceiver,error);
return error;
}

Comment on lines 250 to 252
if (error)
errorReportComponent(componentTransceiver,error);
return error;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if (error)
errorReportComponent(componentTransceiver,error);
return error;
if (error) {
errorReportComponent(componentTransceiver,error);
return error;
}

errorReportComponent(componentTransceiver,error);
return error;

uint16_t uptime = 0;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Errors missed VVV

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants