[ https://issues.apache.org/jira/browse/MYNEWT-261?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15435715#comment-15435715 ]
Christopher Collins commented on MYNEWT-261: -------------------------------------------- Paul, could you please clarify what you mean by "the stats module does not copy the name"? For what it's worth, here is how I would create three instances of a stats section: {code} /* Define the stats section struct. */ STATS_SECT_START(my_stats) STATS_SECT_ENTRY(conn_create) STATS_SECT_ENTRY(conn_delete) STATS_SECT_ENTRY(reset) STATS_SECT_END /* Define three instances of "my_stats". */ STATS_SECT_DECL(my_stats) px_1; STATS_SECT_DECL(my_stats) px_2; STATS_SECT_DECL(my_stats) px_3; {code} > stats module does not allow multiple instances of the same section > ------------------------------------------------------------------ > > Key: MYNEWT-261 > URL: https://issues.apache.org/jira/browse/MYNEWT-261 > Project: Mynewt > Issue Type: Improvement > Reporter: Paul Dietrich > Assignee: Christopher Collins > Fix For: v1_0_0_beta1 > > > Suppose I make a driver for peripheral X. My driver supports up to 3 > peripherals of type X. I want each one to have a unique name. > px_1 > px_2 > px_3 > Right now it takes a bit of fussing to do this since the stats modules does > not copy the name. -- This message was sent by Atlassian JIRA (v6.3.4#6332)