Open tjko opened 9 months ago
Those variables were used for diagnostics which have either been commented out or removed.
I have now similarly commented out or removed the variable definitions.
Compile fails now, looks like these should be commented out as well (?):
libs/bluetooth-stdio/stdio_bt.c:220:21: error: 'rfcomm_channel_nr' undeclared (first use in this function); did you mean 'rfcomm_channel_id'?
220 | rfcomm_channel_nr = rfcomm_event_incoming_connection_get_server_channel(packet);
| ^~~~~~~~~~~~~~~~~
| rfcomm_channel_id
libs/bluetooth-stdio/stdio_bt.c:220:21: note: each undeclared identifier is reported only once for each function it appears in
libs/bluetooth-stdio/stdio_bt.c:234:25: error: 'mtu' undeclared (first use in this function)
234 | mtu = rfcomm_event_channel_opened_get_max_frame_size(packet);
| ^~~
FYI, compiling with
-Wall
seems to produce following warnings: