Looks very close.

If you are still using a rs232, then you want True, if you are not, then just as you did, with inverted.