diff recpt1/recpt1core.c @ 144:5e4290a4cd01

follow BS Japan's transponder migration
author Yoshiki Yazawa <yaz@honeyplanet.jp>
date Mon, 16 Apr 2018 01:24:18 +0900
parents c8688d7d6382
children 75423932bfaa
line wrap: on
line diff
--- a/recpt1/recpt1core.c	Mon Apr 16 00:43:19 2018 +0900
+++ b/recpt1/recpt1core.c	Mon Apr 16 01:24:18 2018 +0900
@@ -9,12 +9,12 @@
 
 /* globals */
 boolean f_exit = FALSE;
-char  bs_channel_buf[8];
+char  bs_channel_buf[20];
 ISDB_T_FREQ_CONV_TABLE isdb_t_conv_set = { 0, CHTYPE_SATELLITE, 0, bs_channel_buf };
 
 
 #if 0
-/* lookup frequency conversion table*/
+/* lookup frequency conversion table */
 ISDB_T_FREQ_CONV_TABLE *
 searchrecoff(char *channel)
 {
@@ -31,14 +31,13 @@
     }
     return NULL;
 }
-#endif
-
-/* lookup frequency conversion table*/
+#else
+/* lookup frequency conversion table */
 ISDB_T_FREQ_CONV_TABLE *
 searchrecoff(char *channel)
 {
     int lp;
-
+    printf("channel = %s\n", channel);
     if(channel[0] == 'B' && channel[1] == 'S') {
         int node = 0;
         int slot = 0;
@@ -73,6 +72,7 @@
     }
     return NULL;
 }
+#endif
 
 int
 close_tuner(thread_data *tdata)