Skip to content

Commit

Permalink
Fix MAC display
Browse files Browse the repository at this point in the history
  • Loading branch information
qistoph committed Feb 19, 2012
1 parent e0029a6 commit d6cd76c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CdpSniffer.ino
Original file line number Diff line number Diff line change
Expand Up @@ -184,9 +184,9 @@ void print_ip(const byte a[], unsigned int offset, unsigned int length) {

void print_mac(const byte a[], unsigned int offset, unsigned int length) {
for(int i=offset; i<offset+length; ++i) {
if(i>offset) Serial.print(':');
if(a[i] < 0x10) Serial.print('0');
Serial.print(a[i], HEX);
Serial.print(':');
}
}

Expand Down

0 comments on commit d6cd76c

Please sign in to comment.