Skip to content
This repository has been archived by the owner on Jul 21, 2024. It is now read-only.

Commit

Permalink
fix error message
Browse files Browse the repository at this point in the history
Fixed error message, which was showing duty instead of channel.
  • Loading branch information
lbernstone committed Sep 30, 2021
1 parent 6d2578b commit b2f2c56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Tone32.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
void tone(uint8_t pin, unsigned int frequency, unsigned long duration, uint8_t channel)
{
if (ledcRead(channel)) {
log_e("Tone channel %d is already in use", ledcRead(channel));
log_e("Tone channel %d is already in use", channel);
return;
}
ledcAttachPin(pin, channel);
Expand Down

0 comments on commit b2f2c56

Please sign in to comment.