We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 39098a0 commit cae2f62Copy full SHA for cae2f62
src/BlueSCSI_initiator.cpp
@@ -116,7 +116,7 @@ static void scsiInitiatorUpdateLed()
116
// Update status indicator, the led blinks every 5 seconds and is on the longer the more data has been transferred
117
const int period = 256;
118
int phase = (millis() % period);
119
- int duty = g_initiator_state.sectors_done * period / g_initiator_state.sectorcount;
+ int duty = (int64_t)g_initiator_state.sectors_done * period / g_initiator_state.sectorcount;
120
121
// Minimum and maximum time to verify that the blink is visible
122
if (duty < 50) duty = 50;
0 commit comments