T108 fota return download process
Change-Id: I96c3d801eb2027374c1ab49c28a303d13bd0840e
diff --git a/mbtk/liblynq_lib/src/lynq_fota.c b/mbtk/liblynq_lib/src/lynq_fota.c
index 5c59e98..b6cabd9 100755
--- a/mbtk/liblynq_lib/src/lynq_fota.c
+++ b/mbtk/liblynq_lib/src/lynq_fota.c
@@ -12,15 +12,14 @@
int fota_cb(int status, int percent)
{
- if(Process_flag)
- printf("status: %d, percent: %d%%\n", status, percent);
+// printf("%d: percent: %d%%\n", percent/10, percent);
+ Process_flag = percent/10;
return 0;
}
int lynq_read_process(void)
{
- Process_flag = 1;
- return 0;
+ return Process_flag;
}
int lynq_rock_main(int first_run)