Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions powerwatch/nrf51-wit-connections/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -478,6 +478,13 @@ static void __on_ble_evt (ble_evt_t* p_ble_evt) {
*/
printf("\r!M R%d V%d C%d W%d P%d F%d\n",
relay_status, voltage, current, watts, pf, freq);
//#define PRINT_MAC_ADDRS
#ifdef PRINT_MAC_ADDRS
uint8_t* addr = _oort_address.addr;
printf("\rType: %d (<-- be wary if not 0) MAC: %02x:%02x:%02x:%02x:%02x:%02x\n",
_oort_address.addr_type,
addr[0], addr[1], addr[2], addr[3], addr[4], addr[5]);
#endif

__next();
break;
Expand Down