Figured out what author was going for from a gist
This commit is contained in:
parent
c41f6ddcc0
commit
9ea79f756a
|
@ -71,7 +71,7 @@ int triggerWeather(String command) {
|
||||||
bool strike = false;
|
bool strike = false;
|
||||||
if (command==String("f")) {
|
if (command==String("f")) {
|
||||||
strike = true;
|
strike = true;
|
||||||
} else if (random(100) < chance) {
|
} else if (random(chance) == 0) {
|
||||||
strike = true;
|
strike = true;
|
||||||
}
|
}
|
||||||
if (strike) {
|
if (strike) {
|
||||||
|
|
|
@ -93,7 +93,7 @@ void loop() {
|
||||||
String trigger = readFromBluetooth();
|
String trigger = readFromBluetooth();
|
||||||
if (trigger==String("f")) {
|
if (trigger==String("f")) {
|
||||||
strike = true;
|
strike = true;
|
||||||
} else if (random(100) < chance) {
|
} else if (random(chance) == 0) {
|
||||||
strike = true;
|
strike = true;
|
||||||
}
|
}
|
||||||
if (strike) {
|
if (strike) {
|
||||||
|
|
Loading…
Reference in New Issue