Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
embhorn committed Nov 28, 2023
1 parent e1f7596 commit e590330
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/mqtt-sn-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,7 @@ jobs:
run: make

- name: test SN Client
run: ./examples/sn-client/sn-client -T $1
RESULT=$?
[ $RESULT -ne 0 ] && echo -e "\n\nMQTT-SN Client failed!" && exit 1
run: ./examples/sn-client/sn-client -T

# Cleanup
- name: Stop gateway
Expand Down
2 changes: 1 addition & 1 deletion examples/sn-client/sn-client.c
Original file line number Diff line number Diff line change
Expand Up @@ -744,6 +744,6 @@ int main(int argc, char** argv)
#endif


return (rc == 0) ? 0 : EXIT_FAILURE;
return (rc == MQTT_CODE_SUCCESS) ? 0 : EXIT_FAILURE;
}

0 comments on commit e590330

Please sign in to comment.