-// SilentTimer Action Figure communication library, v1.0
+// SilentTimer Action Figure communication library, v1.1
// libstaf.c
//
-// 14.12.2020
-// Copyright (C) 2020 Balthasar Szczepański
+// 09.08.2022
+// Copyright (C) 2020, 2022 Balthasar Szczepański
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
return ERR_INVALID_PARAMETER;
fraction = in*100.0;
- if(fraction>limit)
+ if(fraction>=limit)
bcd = stafEncodeBcdU16((uint16_t)(in+0.5));
else
{