Skip to content

Commit

Permalink
Remove unneeded variable.
Browse files Browse the repository at this point in the history
  • Loading branch information
kyle-github committed Jun 3, 2024
1 parent c468a3a commit c371beb
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/examples/example1.c
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ int main(void)
plc_comm_id_t result_batch_id = PLC_COMM_RESULT_BATCH_NULL_ID;
int32_t rc = PLC_COMM_STATUS_OK;
int32_t tag_elements[NUM_ELEMENTS] = {0};
int32_t num_elements = 0;

do {
/*
Expand Down Expand Up @@ -116,7 +115,7 @@ int main(void)
* The array tag_elements is just a normal C array. All regular C code can be used
* with it.
*/
for(int i=0; i < num_elements; i++) {
for(int i=0; i < NUM_ELEMENTS; i++) {
printf("data[%d] = %"PRId32" (%08"PRIx32")\n", i, tag_elements[i], tag_elements[i]);
}
} while(0);
Expand Down

0 comments on commit c371beb

Please sign in to comment.