Figured out what author was going for from a gist

This commit is contained in:
Neale Pickett 2018-08-05 20:55:04 +00:00
parent c41f6ddcc0
commit 9ea79f756a
2 changed files with 2 additions and 2 deletions

View File

@ -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) {

View File

@ -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) {