Update arduino code
This commit is contained in:
parent
925200252d
commit
fc5893f714
2 changed files with 45 additions and 5 deletions
|
@ -44,6 +44,10 @@ void loop() {
|
|||
}
|
||||
Serial.write(Bluetooth.read());
|
||||
}
|
||||
else {
|
||||
//Serial.println("Bluetooth unavailable, waiting 2 secs");
|
||||
//delay(2000);
|
||||
}
|
||||
|
||||
// Read from Arduino Serial Monitor and send it to the HC-05
|
||||
if (Serial.available()) {
|
||||
|
@ -85,8 +89,7 @@ unsigned long build_packet(void) {
|
|||
return built_packet;
|
||||
}
|
||||
|
||||
void PrintBits32(unsigned long u)
|
||||
{
|
||||
void PrintBits32(unsigned long u) {
|
||||
char str[34];
|
||||
str[32] = '\n';
|
||||
str[33] = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue