Skip to content

Commit

Permalink
Scale Voltage in 10th of Volts
Browse files Browse the repository at this point in the history
  • Loading branch information
meriac committed Jan 24, 2020
1 parent c419d9c commit 132dfdd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions firmware/nRF51/reader-prox-microbit/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -86,13 +86,13 @@ static void port_rx(const void* pkt_encrypted, int rssi)
}

debug_printf(
"{ \"uid\":\"0x%08X\", \"time_local_s\":%8u, \"time_remote_s\":%8u, \"rssi\":%3i, \"angle\":%3i, \"voltage\":%4i, \"tx_power\":%i",
"{ \"uid\":\"0x%08X\", \"time_local_s\":%8u, \"time_remote_s\":%8u, \"rssi\":%3i, \"angle\":%3i, \"voltage\":%2i, \"tx_power\":%i",
pkt.uid,
clock_get(),
pkt.epoch,
rssi,
pkt.angle,
pkt.voltage * 100,
pkt.voltage,
pkt.tx_power);

/* optionally decode button */
Expand Down

0 comments on commit 132dfdd

Please sign in to comment.