Checksum calculation for XBee/Writing on serial code won't compile

0x01+0x00+0xFF+0xFF+0x00+0x01 = 0, in byte arithmetic.