@@ -28,7 +28,7 @@ static struct {
2828 pbio_pybricks_user_program_id_t slot ;
2929} pbsys_status ;
3030
31- static void pbsys_status_update_flag (pbio_pybricks_status_t status , bool set ) {
31+ static void pbsys_status_update_flag (pbio_pybricks_status_flags_t status , bool set ) {
3232 uint32_t new_flags = set ? pbsys_status .flags | PBIO_PYBRICKS_STATUS_FLAG (status ) : pbsys_status .flags & ~PBIO_PYBRICKS_STATUS_FLAG (status );
3333
3434 if (pbsys_status .flags == new_flags ) {
@@ -112,7 +112,7 @@ void pbsys_status_set_program_id(pbio_pybricks_user_program_id_t program_id) {
112112 * Sets a system status status indication.
113113 * @param [in] status The status indication to set.
114114 */
115- void pbsys_status_set (pbio_pybricks_status_t status ) {
115+ void pbsys_status_set (pbio_pybricks_status_flags_t status ) {
116116 assert (status < NUM_PBIO_PYBRICKS_STATUS );
117117 pbsys_status_update_flag (status , true);
118118}
@@ -121,7 +121,7 @@ void pbsys_status_set(pbio_pybricks_status_t status) {
121121 * Clears a system status status indication.
122122 * @param [in] status The status indication to clear.
123123 */
124- void pbsys_status_clear (pbio_pybricks_status_t status ) {
124+ void pbsys_status_clear (pbio_pybricks_status_flags_t status ) {
125125 assert (status < NUM_PBIO_PYBRICKS_STATUS );
126126 pbsys_status_update_flag (status , false);
127127}
@@ -131,7 +131,7 @@ void pbsys_status_clear(pbio_pybricks_status_t status) {
131131 * @param [in] status The status indication to to test.
132132 * @return *true* if @p status is set, otherwise *false*.
133133 */
134- bool pbsys_status_test (pbio_pybricks_status_t status ) {
134+ bool pbsys_status_test (pbio_pybricks_status_flags_t status ) {
135135 assert (status < NUM_PBIO_PYBRICKS_STATUS );
136136 return !!(pbsys_status .flags & PBIO_PYBRICKS_STATUS_FLAG (status ));
137137}
@@ -148,7 +148,7 @@ bool pbsys_status_test(pbio_pybricks_status_t status) {
148148 * @return *true* if @p status has been set to @p state for at
149149 * least @p ms, otherwise *false*.
150150 */
151- bool pbsys_status_test_debounce (pbio_pybricks_status_t status , bool state , uint32_t ms ) {
151+ bool pbsys_status_test_debounce (pbio_pybricks_status_flags_t status , bool state , uint32_t ms ) {
152152 assert (status < NUM_PBIO_PYBRICKS_STATUS );
153153 if (pbsys_status_test (status ) != state ) {
154154 return false;
0 commit comments