Changeset 273
- Timestamp:
- 09/29/11 16:52:43 (8 months ago)
- Location:
- ap51-flash/trunk
- Files:
-
- 5 modified
Legend:
- Unmodified
- Added
- Removed
-
ap51-flash/trunk/Makefile
r267 r273 19 19 # enable debug output 20 20 # EXTRA_CFLAGS += -DDEBUG 21 # clear screen after each subsequent flash 22 # EXTRA_CFLAGS += -DCLEAR_SCREEN 21 23 22 24 # define $EMBED_IMG=/path/to/image to have your image included -
ap51-flash/trunk/flash.c
r270 r273 34 34 static uint8_t our_mac[] = {0x00, 0xba, 0xbe, 0xca, 0xff, 0x00}; 35 35 36 #if defined (CLEAR_SCREEN) 37 int num_nodes_flashed = 0; 38 #endif 39 36 40 #define PACKET_BUFF_LEN 2000 37 41 #define READ_SLEEP_SEC 0 … … 136 140 break; 137 141 138 fprintf(stderr, "[%02x:%02x:%02x:%02x:%02x:%02x]: %s: flash complete. Device ready to unplug.\n \n\n\n",142 fprintf(stderr, "[%02x:%02x:%02x:%02x:%02x:%02x]: %s: flash complete. Device ready to unplug.\n", 139 143 node->his_mac_addr[0], node->his_mac_addr[1], node->his_mac_addr[2], 140 144 node->his_mac_addr[3], node->his_mac_addr[4], node->his_mac_addr[5], 141 145 node->router_type->desc); 142 146 node->status = NODE_STATUS_REBOOTED; 147 #if defined (CLEAR_SCREEN) 148 num_nodes_flashed++; 149 #endif 143 150 break; 144 151 case NODE_STATUS_REBOOTED: -
ap51-flash/trunk/flash.h
r266 r273 19 19 #include "compat.h" 20 20 21 #if defined (CLEAR_SCREEN) 22 extern int num_nodes_flashed; 23 #endif 24 21 25 struct node *node_list_get(uint8_t *mac_addr); 22 26 void our_mac_set(struct node *node); -
ap51-flash/trunk/proto.c
r272 r273 192 192 case NODE_STATUS_RESET_SENT: 193 193 case NODE_STATUS_FINISHED: 194 fprintf(stderr, "[%02x:%02x:%02x:%02x:%02x:%02x]: %s: flash complete. Device ready to unplug.\n \n\n\n",194 fprintf(stderr, "[%02x:%02x:%02x:%02x:%02x:%02x]: %s: flash complete. Device ready to unplug.\n", 195 195 node->his_mac_addr[0], node->his_mac_addr[1], node->his_mac_addr[2], 196 196 node->his_mac_addr[3], node->his_mac_addr[4], node->his_mac_addr[5], 197 197 node->router_type->desc); 198 198 node->status = NODE_STATUS_REBOOTED; 199 #if defined (CLEAR_SCREEN) 200 num_nodes_flashed++; 201 #endif 199 202 break; 200 203 case NODE_STATUS_REBOOTED: -
ap51-flash/trunk/router_types.c
r265 r273 99 99 node->router_priv = priv; 100 100 101 #if defined (CLEAR_SCREEN) 102 if (num_nodes_flashed > 0) 103 system("clear"); 104 #endif 105 101 106 fprintf(stderr, "[%02x:%02x:%02x:%02x:%02x:%02x]: type '%s' detected\n", 102 107 node->his_mac_addr[0], node->his_mac_addr[1], node->his_mac_addr[2],
