Skip to content

Commit

Permalink
time newline in uplink
Browse files Browse the repository at this point in the history
  • Loading branch information
heeen committed Jul 3, 2015
1 parent 3ed6e7c commit 4390abb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion user/uplink.c
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ static void ICACHE_FLASH_ATTR uplink_recvCb(void *arg, char *data, unsigned shor
tcp_print(conn, "pong\n");
} else if(strncmp(data, "time", 4) == 0) {
struct tm *dt = gmtime(&timestamp);
os_sprintf(temp, "%02d:%02d:%02d", dt->tm_hour, dt->tm_min, dt->tm_sec);
os_sprintf(temp, "%02d:%02d:%02d\n", dt->tm_hour, dt->tm_min, dt->tm_sec);
tcp_print(conn, temp);
} else if(strncmp(data, "rssi", 4) == 0) {
os_sprintf(temp, "RSSI=%d\n", wifi_station_get_rssi());
Expand Down

0 comments on commit 4390abb

Please sign in to comment.