Skip to content

Commit

Permalink
- Display bba_ip on info screen if initialized
Browse files Browse the repository at this point in the history
  • Loading branch information
emukidid committed Jan 27, 2020
1 parent a2ad745 commit 9acd6cb
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cube/swiss/source/gui/info.c
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,10 @@ uiDrawObj_t * info_draw_page(int page_num) {
DrawAddChild(container, DrawStyledLabel(640/2, 146, (char*)(dev == NULL ? "Empty" : dev->hwName), 0.75f, true, defaultColor));
dev = getDeviceByLocation(LOC_SERIAL_PORT_1);
DrawAddChild(container, DrawStyledLabel(640/2, 170, (char*)"SERIAL PORT 1", 0.65f, true, defaultColor));
DrawAddChild(container, DrawStyledLabel(640/2, 186, (char*)(dev == NULL ? "Empty" : dev->hwName), 0.75f, true, defaultColor));
if(dev != NULL) {
sprintf(topStr, "%s (%s)",dev->hwName, net_initialized ? bba_ip : "Not initialized");
}
DrawAddChild(container, DrawStyledLabel(640/2, 186, (char*)(dev == NULL ? "Empty" : topStr), 0.75f, true, defaultColor));
dev = getDeviceByLocation(LOC_SERIAL_PORT_2);
DrawAddChild(container, DrawStyledLabel(640/2, 210, (char*)"SERIAL PORT 2", 0.65f, true, defaultColor));
DrawAddChild(container, DrawStyledLabel(640/2, 226, (char*)(dev == NULL ? "Empty" : dev->hwName), 0.75f, true, defaultColor));
Expand Down

0 comments on commit 9acd6cb

Please sign in to comment.