@@ -209,7 +209,7 @@ int main (int argc, char *argv[])
209
209
packet_t pp ;
210
210
211
211
memset (& audio_config , 0 , sizeof (audio_config ));
212
- audio_config .adev [0 ].num_chans = 2 ;
212
+ audio_config .adev [0 ].num_channels = 2 ;
213
213
strlcpy (audio_config .achan [0 ].mycall , "WB2OSZ-1" , sizeof (audio_config .achan [0 ].mycall ));
214
214
strlcpy (audio_config .achan [1 ].mycall , "WB2OSZ-2" , sizeof (audio_config .achan [0 ].mycall ));
215
215
@@ -228,7 +228,7 @@ int main (int argc, char *argv[])
228
228
229
229
memset (& digi_config , 0 , sizeof (digi_config ));
230
230
231
- igate_init (& igate_config , & digi_config );
231
+ igate_init (& audio_config , & igate_config , & digi_config , 0 );
232
232
233
233
while (igate_sock == -1 ) {
234
234
SLEEP_SEC (1 );
@@ -269,7 +269,7 @@ int main (int argc, char *argv[])
269
269
SLEEP_SEC (20 );
270
270
text_color_set (DW_COLOR_INFO );
271
271
dw_printf ("Send received packet\n" );
272
- send_msg_to_server ("W1ABC>APRS:?" , strlen ("W1ABC>APRS:?" );
272
+ send_msg_to_server ("W1ABC>APRS:?" , strlen ("W1ABC>APRS:?" )) ;
273
273
}
274
274
#endif
275
275
return 0 ;
0 commit comments